aboutsummaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-04-25 18:51:38 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-04-25 18:51:38 +0000
commit2ed8cda226068bc3d0d735af79e876040717df30 (patch)
tree734aac59a4031fc82548f847017d97b5f8f8de60 /Makerules
parent35d76d595010892b34aab92a8d98238119db1b3b (diff)
downloadglibc-2ed8cda226068bc3d0d735af79e876040717df30.zip
glibc-2ed8cda226068bc3d0d735af79e876040717df30.tar.gz
glibc-2ed8cda226068bc3d0d735af79e876040717df30.tar.bz2
Use more defines and makefile variables in $(native-compile).
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makerules b/Makerules
index 72667db..18aeb9e 100644
--- 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