aboutsummaryrefslogtreecommitdiff
path: root/Makefile.tpl
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2008-06-08 16:19:22 +0000
committerJoseph Myers <joseph@codesourcery.com>2008-06-08 16:19:22 +0000
commit6641ce4221afb03b02bf2fcddcbc5b2b2c73782c (patch)
treeaf1a25c8af1a8ea5a5e82f028435e49e4e2a51e4 /Makefile.tpl
parent0096ff26d408012b9983003d3cc25c4bb606a9e5 (diff)
downloadgdb-6641ce4221afb03b02bf2fcddcbc5b2b2c73782c.zip
gdb-6641ce4221afb03b02bf2fcddcbc5b2b2c73782c.tar.gz
gdb-6641ce4221afb03b02bf2fcddcbc5b2b2c73782c.tar.bz2
* Makefile.def (flags_to_pass): Add LDFLAGS_FOR_BUILD.
* Makefile.tpl (EXTRA_BUILD_FLAGS): Define. (all prefix="build-"): Pass them to build-system sub-makes. * Makefile.in: Regenerate. config: * config/mh-mingw (LDFLAGS): Define.
Diffstat (limited to 'Makefile.tpl')
-rw-r--r--Makefile.tpl9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile.tpl b/Makefile.tpl
index ea2676f..c9b34ed 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -147,6 +147,12 @@ BUILD_EXPORTS = \
WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC;
+# These variables must be set on the make command line for directories
+# built for the build system to override those in BASE_FLAGS_TO_PASSS.
+EXTRA_BUILD_FLAGS = \
+ CFLAGS="$(CFLAGS_FOR_BUILD)" \
+ LDFLAGS="$(LDFLAGS_FOR_BUILD)"
+
# This is the list of directories to built for the host system.
SUBDIRS = @configdirs@
# This is set by the configure script to the arguments to use when configuring
@@ -955,7 +961,8 @@ clean-stage[+id+]-[+prefix+][+module+]:
target_alias=(get "target" "${target_alias}")
args="$(BUILD_CONFIGARGS)" no-config-site=true +]
-[+ all prefix="build-" subdir="$(BUILD_SUBDIR)" exports="$(BUILD_EXPORTS)" +]
+[+ all prefix="build-" subdir="$(BUILD_SUBDIR)" exports="$(BUILD_EXPORTS)"
+ args="$(EXTRA_BUILD_FLAGS)" +]
[+ ENDFOR build_module +]
# --------------------------------------