[asterisk-commits] branch group/autoconf_and_menuselect r21735 - in
/team/group/autoconf_and_men...
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Apr 19 19:25:48 MST 2006
Author: russell
Date: Wed Apr 19 21:25:46 2006
New Revision: 21735
URL: http://svn.digium.com/view/asterisk?rev=21735&view=rev
Log:
let autoconf define _GNU_SOURCE in autoconfig.h
Modified:
team/group/autoconf_and_menuselect/Makefile
team/group/autoconf_and_menuselect/build_tools/Makefile
team/group/autoconf_and_menuselect/configure.ac
Modified: team/group/autoconf_and_menuselect/Makefile
URL: http://svn.digium.com/view/asterisk/team/group/autoconf_and_menuselect/Makefile?rev=21735&r1=21734&r2=21735&view=diff
==============================================================================
--- team/group/autoconf_and_menuselect/Makefile (original)
+++ team/group/autoconf_and_menuselect/Makefile Wed Apr 19 21:25:46 2006
@@ -248,7 +248,7 @@
endif
INCLUDE+=-Iinclude -I../include
-ASTCFLAGS+=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE #-DMAKE_VALGRIND_HAPPY
+ASTCFLAGS+=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT #-DMAKE_VALGRIND_HAPPY
ASTCFLAGS+=$(OPTIMIZE)
ASTCFLAGS+=# -Werror -Wunused
ifeq ($(shell gcc -v 2>&1 | grep 'gcc version' | cut -f3 -d' ' | cut -f1 -d.),4)
Modified: team/group/autoconf_and_menuselect/build_tools/Makefile
URL: http://svn.digium.com/view/asterisk/team/group/autoconf_and_menuselect/build_tools/Makefile?rev=21735&r1=21734&r2=21735&view=diff
==============================================================================
--- team/group/autoconf_and_menuselect/build_tools/Makefile (original)
+++ team/group/autoconf_and_menuselect/build_tools/Makefile Wed Apr 19 21:25:46 2006
@@ -2,7 +2,7 @@
$(CC) -g -o menuselect menuselect.o ../mxml/libmxml.a -lcurses
menuselect.o: menuselect.c menuselect.h
- $(CC) -D_GNU_SOURCE -g -o menuselect.o -c -I../ -I../include/ menuselect.c
+ $(CC) -g -o menuselect.o -c -I../ -I../include/ menuselect.c
clean:
rm -f menuselect menuselect.o
Modified: team/group/autoconf_and_menuselect/configure.ac
URL: http://svn.digium.com/view/asterisk/team/group/autoconf_and_menuselect/configure.ac?rev=21735&r1=21734&r2=21735&view=diff
==============================================================================
--- team/group/autoconf_and_menuselect/configure.ac (original)
+++ team/group/autoconf_and_menuselect/configure.ac Wed Apr 19 21:25:46 2006
@@ -98,6 +98,9 @@
;;
esac
AC_SUBST(PBX_OSTYPE)
+
+# This needs to be before any macros that use the C compiler
+AC_GNU_SOURCE
# cross-compile checks
if test x"${build}" != x"${host}";
More information about the asterisk-commits
mailing list