mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-13 04:38:20 +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:
committed by
Norman Feske
parent
764f8335d0
commit
1947d08e78
@ -102,3 +102,6 @@ endif
|
|||||||
|
|
||||||
# because we use the host compiler's libgcc, omit the Genode toolchain's version
|
# because we use the host compiler's libgcc, omit the Genode toolchain's version
|
||||||
LD_LIBGCC =
|
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
|
# Use CXX for linking
|
||||||
#
|
#
|
||||||
LD_CMD := $(CXX) $(CXX_LINK_OPT)
|
LD_CMD ?= $(CXX)
|
||||||
|
|
||||||
|
LD_CMD += $(CXX_LINK_OPT)
|
||||||
|
|
||||||
ifeq ($(SHARED_LIBS),)
|
ifeq ($(SHARED_LIBS),)
|
||||||
LD_SCRIPTS := $(LD_SCRIPT_STATIC)
|
LD_SCRIPTS := $(LD_SCRIPT_STATIC)
|
||||||
|
Reference in New Issue
Block a user