summaryrefslogtreecommitdiffstats
path: root/make/include
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2012-06-17 14:04:02 +0000
committerjstebbins <[email protected]>2012-06-17 14:04:02 +0000
commit42bc0353a509999e095a25fbb4f73b8c4b490aeb (patch)
treec865fb2f151667ffe882ea2281211200902b108b /make/include
parentebb9137df0b40c10e5514522a9f6379fad789930 (diff)
Add CFLAGS and LDFLAGS specified during configure to compile and link commands
Enhances portability. configure.py already added these to the GNUmakefile output, but the values did not get incorporated into compile or link commands. Thanks to Fabian Greffrath and Rogerio Brito for this patch git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4742 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'make/include')
-rw-r--r--make/include/contrib.defs2
-rw-r--r--make/include/gcc.defs10
2 files changed, 6 insertions, 6 deletions
diff --git a/make/include/contrib.defs b/make/include/contrib.defs
index 4c813c7fb..1a1d05c71 100644
--- a/make/include/contrib.defs
+++ b/make/include/contrib.defs
@@ -101,7 +101,7 @@ define import.CONTRIB.defs
$(1).CONFIGURE.env.CXXFLAGS = CXXFLAGS="$$(call fn.ARGS,$(1).GCC,*archs *sysroot *minver ?extra)"
endif
$(1).CONFIGURE.env.CPPFLAGS = CPPFLAGS="$$(call fn.ARGS,$(1).GCC,*archs *sysroot *minver ?extra)"
- $(1).CONFIGURE.env.LDFLAGS = LDFLAGS="$$(call fn.ARGS,$(1).GCC,*archs *sysroot *minver)"
+ $(1).CONFIGURE.env.LDFLAGS = LDFLAGS="$$(call fn.ARGS,$(1).GCC,*archs *sysroot *minver ?extra.exe)"
$(1).CONFIGURE.env.PKG_CONFIG_PATH = PKG_CONFIG_PATH="$$(call fn.ABSOLUTE,$$(CONTRIB.build/))lib/pkgconfig"
$(1).CONFIGURE.env.args = !CC !CFLAGS !CXX !CXXFLAGS !CPPFLAGS !LDFLAGS !PKG_CONFIG_PATH !LOCAL_PATH
diff --git a/make/include/gcc.defs b/make/include/gcc.defs
index 50b31f100..2bfc63562 100644
--- a/make/include/gcc.defs
+++ b/make/include/gcc.defs
@@ -67,15 +67,15 @@ GCC.args.L = -L$(1)
GCC.args.l = -l$(1)
GCC.args.end = -Wl,--end-group
-GCC.args.extra =
+GCC.args.extra = $(CFLAGS) $(CPPFLAGS)
GCC.args.extra.h_o =
GCC.args.extra.c_o =
-GCC.args.extra.dylib =
-GCC.args.extra.exe =
+GCC.args.extra.dylib = $(LDFLAGS)
+GCC.args.extra.exe = $(LDFLAGS)
GCC.args.extra.hpp_o =
GCC.args.extra.cpp_o =
-GCC.args.extra.dylib++ =
-GCC.args.extra.exe++ =
+GCC.args.extra.dylib++ = $(LDFLAGS)
+GCC.args.extra.exe++ = $(LDFLAGS)
###############################################################################