From 6d82dd14d677abd553e026d3022b90bcb897f279 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 15 Mar 2017 17:24:13 +0100 Subject: [PATCH] mk: access linker scripts via BASE_DIR The use of 'select_from_repositories' for locating the linker script for dynamically-linked executables only works if 'BASE_DIR' appears in the list of 'REPOSITORIES'. This is the case when using the build system in the traditional way but it is not desired when building binary archives of individual components. --- repos/base/mk/prg.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/base/mk/prg.mk b/repos/base/mk/prg.mk index 53482e7d69..859cc4c3a4 100644 --- a/repos/base/mk/prg.mk +++ b/repos/base/mk/prg.mk @@ -104,7 +104,7 @@ else # # Add a list of symbols that shall always be added to the dynsym section # -LD_OPT += --dynamic-list=$(call select_from_repositories,src/ld/genode_dyn.dl) +LD_OPT += --dynamic-list=$(BASE_DIR)/src/ld/genode_dyn.dl LD_SCRIPTS := $(LD_SCRIPT_DYN) LD_CMD += -Wl,--dynamic-linker=$(DYNAMIC_LINKER).lib.so \