aboutsummaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorAndreas Jaeger <jaegerandi@gmail.com>2012-04-24 22:10:04 +0200
committerAndreas Jaeger <jaegerandi@gmail.com>2012-04-24 22:10:04 +0200
commitf23f459dd38eaf61cb574c7312599975e13468a9 (patch)
tree6beb572da1ebbe80343a6dc48345d89db20083da /Makerules
parente5a6e5674bff85242bcc4d476e226c2475bf1e5c (diff)
parentc1820385dfe63bdddad462a3384267614c043415 (diff)
downloadglibc-f23f459dd38eaf61cb574c7312599975e13468a9.zip
glibc-f23f459dd38eaf61cb574c7312599975e13468a9.tar.gz
glibc-f23f459dd38eaf61cb574c7312599975e13468a9.tar.bz2
Merge branch 'master' of git://sourceware.org/git/glibc
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makerules b/Makerules
index d0e98bb..72667db 100644
--- a/Makerules
+++ b/Makerules
@@ -1114,17 +1114,15 @@ install-no-libc.a-nosubdir: install-bin-nosubdir install-bin-script-nosubdir \
endif
install: install-no-libc.a-nosubdir
-# Command to compile $< in $(objdir) using the native libraries.
+# Command to compile $< using the native libraries.
define native-compile
$(make-target-directory)
-$(patsubst %/,cd % &&,$(objpfx)) \
$(BUILD_CC) $($(basename $(<F))-CFLAGS) $(ALL_BUILD_CFLAGS) \
- $(firstword $(filter /%,$< $(shell pwd)/$<)) -o $(@F)
+ $< $(OUTPUT_OPTION)
endef
# We always want to use configuration definitions.
-# Note that this is only used for commands running in $(objpfx).
-ALL_BUILD_CFLAGS = $(BUILD_CFLAGS) -include $(..)config.h
+ALL_BUILD_CFLAGS = $(BUILD_CFLAGS) -include $(common-objpfx)config.h
# Support the GNU standard name for this target.
.PHONY: check