From 0b4816f6a89562477ecb28e16c74ed60d5db5ca4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 26 Nov 2013 08:23:31 +0200 Subject: Try to extract library search paths from C++ compiler This is needed, for example, to support Debian multi-arch. --- xsd/build/cxx/generic/configuration-dynamic.make | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xsd/build/cxx/generic/configuration-dynamic.make b/xsd/build/cxx/generic/configuration-dynamic.make index c43865a..f35ea66 100644 --- a/xsd/build/cxx/generic/configuration-dynamic.make +++ b/xsd/build/cxx/generic/configuration-dynamic.make @@ -3,3 +3,14 @@ cxx_generic := $(CXX) else cxx_generic := g++ endif + +r := $(shell $(cxx_generic) $(cxx_extra_options) $(cxx_ld_extra_options) \ +-print-search-dirs 2>&1 | sed -e 's/libraries: =//p' -e d) + +ifneq ($r,) + ifeq ($(cxx_extra_lib_paths),) + cxx_extra_lib_paths := $r + else + cxx_extra_lib_paths := $(cxx_extra_lib_paths):$r + endif +endif -- cgit v1.1