aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xsd/build/cxx/generic/configuration-dynamic.make11
1 files changed, 11 insertions, 0 deletions
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