mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 20:05:54 +00:00
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:
parent
764f8335d0
commit
1947d08e78
@ -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++
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user