mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
base-linux: Repair hybrid programs
Do not link 'startup' and 'cxx' libraries against hybrid programs.
This commit is contained in:
parent
961bd41b05
commit
b4612d24ce
@ -4,7 +4,7 @@
|
||||
# \date 2013-02-14
|
||||
#
|
||||
|
||||
LIBS += startup syscall
|
||||
LIBS += syscall
|
||||
|
||||
SRC_CC += ipc/ipc.cc
|
||||
SRC_CC += avl_tree/avl_tree.cc
|
||||
|
20
base-linux/lib/mk/base.inc
Normal file
20
base-linux/lib/mk/base.inc
Normal file
@ -0,0 +1,20 @@
|
||||
#
|
||||
# \brief Portions of base library that are exclusive to non-core processes
|
||||
# \author Norman Feske
|
||||
# \date 2013-02-14
|
||||
#
|
||||
# The content of this file is used for both native Genode as well as hybrid
|
||||
# Linux/Genode programs. Hence, it must be void of any thread-related code.
|
||||
#
|
||||
|
||||
LIBS += base-common syscall cxx
|
||||
|
||||
SRC_CC += console/log_console.cc
|
||||
SRC_CC += env/env.cc env/platform_env.cc env/context_area.cc
|
||||
|
||||
INC_DIR += $(REP_DIR)/src/base/env $(BASE_DIR)/src/base/env
|
||||
|
||||
vpath %.cc $(REP_DIR)/src/base
|
||||
vpath %.cc $(BASE_DIR)/src/base
|
||||
|
||||
# vi:set ft=make :
|
@ -1,19 +1,16 @@
|
||||
#
|
||||
# \brief Portions of base library that are exclusive to non-core processes
|
||||
# \author Norman Feske
|
||||
# \date 2013-02-14
|
||||
#
|
||||
# The content of this file is used for both native Genode as well as hybrid
|
||||
# Linux/Genode programs. Hence, it must be void of any thread-related code.
|
||||
# \brief Base lib parts that are not used by hybrid applications
|
||||
# \author Sebastian Sumpf
|
||||
# \date 2014-02-21
|
||||
#
|
||||
|
||||
LIBS += base-common syscall cxx
|
||||
LIBS += startup cxx
|
||||
SRC_CC += thread.cc thread_linux.cc
|
||||
|
||||
vpath %.cc $(REP_DIR)/src/base/thread
|
||||
vpath %.cc $(BASE_DIR)/src/base/thread
|
||||
|
||||
include $(REP_DIR)/lib/mk/base.inc
|
||||
|
||||
SRC_CC += console/log_console.cc
|
||||
SRC_CC += env/env.cc env/platform_env.cc env/context_area.cc
|
||||
SRC_CC += thread/thread.cc thread/thread_linux.cc
|
||||
|
||||
INC_DIR += $(REP_DIR)/src/base/env $(BASE_DIR)/src/base/env
|
||||
|
||||
vpath %.cc $(REP_DIR)/src/base
|
||||
vpath %.cc $(BASE_DIR)/src/base
|
||||
|
@ -1,6 +1,6 @@
|
||||
TARGET = core
|
||||
REQUIRES = linux
|
||||
LIBS = cxx base-common syscall
|
||||
LIBS = cxx base-common syscall startup
|
||||
|
||||
GEN_CORE_DIR = $(BASE_DIR)/src/core
|
||||
|
||||
|
@ -162,8 +162,9 @@ STATIC_LIBS := $(sort $(wildcard $(STATIC_LIBS)))
|
||||
# 'src/platform/lx_hybrid.cc'.
|
||||
#
|
||||
ifeq ($(USE_HOST_LD_SCRIPT),yes)
|
||||
STATIC_LIBS := $(filter-out $(LIB_CACHE_DIR)/base/base.lib.a, $(STATIC_LIBS))
|
||||
STATIC_LIBS := $(filter-out $(LIB_CACHE_DIR)/cxx/cxx.lib.a, $(STATIC_LIBS))
|
||||
STATIC_LIBS := $(filter-out $(LIB_CACHE_DIR)/startup/startup.lib.a, $(STATIC_LIBS))
|
||||
STATIC_LIBS := $(filter-out $(LIB_CACHE_DIR)/base/base.lib.a, $(STATIC_LIBS))
|
||||
STATIC_LIBS := $(filter-out $(LIB_CACHE_DIR)/cxx/cxx.lib.a, $(STATIC_LIBS))
|
||||
endif
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user