]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use more defines and makefile variables in $(native-compile).
authorJoseph Myers <joseph@codesourcery.com>
Wed, 25 Apr 2012 18:51:38 +0000 (18:51 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 25 Apr 2012 18:51:38 +0000 (18:51 +0000)
ChangeLog
Makerules

index 6f46ce1d8693cbbbd92018db22640d86d7a841df..7d79d759f508f6b00012ec5528aab03b8edac2a3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
 
+       * Makerules (native-compile): Use $(BUILD_LDFLAGS).
+       (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
+       -DIS_IN_build.
+
        * timezone/README: Update upstream location and email address for
        tzcode and tzdata.
        * timezone/zdump.c: Update from tzcode 2012b.
index 72667dbc70136f01d098c051c98faa5a4b38d73e..18aeb9e71e3b6f28fd84e5586157c223077846c5 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -1118,11 +1118,12 @@ install: install-no-libc.a-nosubdir
 define native-compile
 $(make-target-directory)
 $(BUILD_CC) $($(basename $(<F))-CFLAGS) $(ALL_BUILD_CFLAGS) \
-           $< $(OUTPUT_OPTION)
+           $< $(OUTPUT_OPTION) $(BUILD_LDFLAGS)
 endef
 
 # We always want to use configuration definitions.
-ALL_BUILD_CFLAGS = $(BUILD_CFLAGS) -include $(common-objpfx)config.h
+ALL_BUILD_CFLAGS = $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) -D_GNU_SOURCE \
+                  -DIS_IN_build -include $(common-objpfx)config.h
 
 # Support the GNU standard name for this target.
 .PHONY: check