summaryrefslogtreecommitdiff
path: root/xsd/build/cxx/generic/configuration-dynamic.make
blob: f35ea66e339b63bd5a21f366938011067615746b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
ifeq ($(filter $(origin CXX),undefined default),)
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