aboutsummaryrefslogtreecommitdiffstats
path: root/build_tools
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-22 13:41:31 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-22 13:41:31 +0000
commit8c48f5314b7d01239d6163a8ca2a6f779fbefd39 (patch)
tree3f9c0574a839cf0e88a1946a25776cb6200e14b1 /build_tools
parent5f88064541007fa1f276751bd53fe63d8a390cf0 (diff)
Merged revisions 117756 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r117756 | russell | 2008-05-22 08:40:52 -0500 (Thu, 22 May 2008) | 5 lines Store build-time options as a string in AST_BUILDOPTS in buildopts.h. Also, display this information in the "core show settings" CLI command. This is useful if you want to verify that you're running a build with DONT_OPTIMIZE, DEBUG_THREADS, etc. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@117757 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/make_buildopts_h7
1 files changed, 7 insertions, 0 deletions
diff --git a/build_tools/make_buildopts_h b/build_tools/make_buildopts_h
index 00b3eeded..f721dbca2 100755
--- a/build_tools/make_buildopts_h
+++ b/build_tools/make_buildopts_h
@@ -10,6 +10,11 @@ END
TMP=`${GREP} -e ^MENUSELECT_CFLAGS menuselect.makeopts | sed 's/MENUSELECT_CFLAGS\=//g' | sed 's/-D//g'`
for x in ${TMP}; do
echo "#define ${x} 1"
+ if test "x${BUILDOPTS}" != "x" ; then
+ BUILDOPTS="${BUILDOPTS}, ${x}"
+ else
+ BUILDOPTS="${x}"
+ fi
done
TMP=`${GREP} -e ^MENUSELECT_BUILD_DEPS menuselect.makeopts | sed 's/MENUSELECT_BUILD_DEPS\=//g'`
for x in ${TMP}; do
@@ -35,3 +40,5 @@ SunOS)
esac
echo "#define AST_BUILDOPT_SUM \"${BUILDSUM}\""
+
+echo "#define AST_BUILDOPTS \"${BUILDOPTS}\""