summaryrefslogtreecommitdiffstats
path: root/make/include
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-03-21 18:14:04 +0000
committerjstebbins <[email protected]>2011-03-21 18:14:04 +0000
commita459a827c23dd2063c559de1f9c4c23fd0384b19 (patch)
tree3ca72e08b1dc7c9efa23d84129415b05e28bc9a8 /make/include
parent01372381e86f1f89ab40cdf8c2a08b9a71bbca23 (diff)
Fix linking on mingw when using libtool
Linking the gtk gui uses libtool. The *.la files libtool uses specify the dependency libraries that libraries are built against. Our libbluray contrib was being built against the system libxml2 due to dependencies that were not set in our build system and PKG_CONFIG_PATH not being set when configuring. Note that on fedora (and possibly other systems) the ${cross}-pkg-config script provided is broken and explicitely sets PKG_CONFIG_PATH="". You need to replace this script with something like this: PKG_CONFIG_LIBDIR=$(${cross}-gcc --print-sysroot)/mingw/lib/pkgconfig pkg-config $* git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3858 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'make/include')
-rw-r--r--make/include/contrib.defs3
1 files changed, 2 insertions, 1 deletions
diff --git a/make/include/contrib.defs b/make/include/contrib.defs
index 9edd9389c..0e158cd67 100644
--- a/make/include/contrib.defs
+++ b/make/include/contrib.defs
@@ -88,8 +88,9 @@ define import.CONTRIB.defs
$(1).CONFIGURE.env.CXXFLAGS = CXXFLAGS="$$(call fn.ARGS,$(1).GCC,*archs *sysroot *minver ?extra)"
$(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.PKG_CONFIG_PATH = PKG_CONFIG_PATH="$$(call fn.ABSOLUTE,$$(CONTRIB.build/))lib/pkgconfig"
- $(1).CONFIGURE.env.args = !CC !CFLAGS !CXX !CXXFLAGS !CPPFLAGS !LDFLAGS
+ $(1).CONFIGURE.env.args = !CC !CFLAGS !CXX !CXXFLAGS !CPPFLAGS !LDFLAGS !PKG_CONFIG_PATH
$(1).CONFIGURE.env = $$(call fn.ARGS,$(1).CONFIGURE.env,$$($(1).CONFIGURE.env.args))
$(1).CONFIGURE.target = $$($(1).build/).stamp.configure