Use the host c++ for linking hybrid applications

Some shared libraries of the host system contain search paths for finding
other needed shared libraries. These paths get evaluated only by a native
linker. To find all needed shared libraries, with this patch, the host
linker is used to link hybrid applications.

Fixes #645.
This commit is contained in:
Christian Prochaska 2013-02-03 02:47:01 +01:00 committed by Norman Feske
parent 764f8335d0
commit 1947d08e78
2 changed files with 6 additions and 1 deletions

View File

@ -102,3 +102,6 @@ endif
# because we use the host compiler's libgcc, omit the Genode toolchain's version
LD_LIBGCC =
# use the host c++ for linking to find shared libraries in DT_RPATH library paths
LD_CMD = c++

View File

@ -106,7 +106,9 @@ SHARED_LIBS := $(sort $(wildcard $(SHARED_LIBS)))
#
# Use CXX for linking
#
LD_CMD := $(CXX) $(CXX_LINK_OPT)
LD_CMD ?= $(CXX)
LD_CMD += $(CXX_LINK_OPT)
ifeq ($(SHARED_LIBS),)
LD_SCRIPTS := $(LD_SCRIPT_STATIC)