Skip to content
Snippets Groups Projects
Commit 7d26f2f3 authored by Horst Schirmeier's avatar Horst Schirmeier
Browse files

bugfix: linker problems on Ubuntu 12.04

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1671 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
parent ab7b2bb1
No related branches found
No related tags found
No related merge requests found
......@@ -47,9 +47,10 @@ elseif(BUILD_QEMU)
include_directories(simulators)
endif(BUILD_BOCHS)
## Additional Compiler flags ##
## Additional compiler and linker flags ##
set(CMAKE_C_FLAGS "-g -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "-Wl,-gc-sections")
## Tell the linker where to find the Fail* libraries
link_directories("${LIBRARY_OUTPUT_PATH}")
......
......@@ -37,4 +37,4 @@ set(experiment_libraries "")
foreach(exp_or_plugin ${EXPERIMENTS_ACTIVATED} ${PLUGINS_ACTIVATED})
set(experiment_libraries ${experiment_libraries} fail-${exp_or_plugin})
endforeach(exp_or_plugin)
target_link_libraries(fail -Wl,--start-group ${experiment_libraries} fail-sal fail-cpn fail-efw fail-comm fail-util -Wl,--end-group)
target_link_libraries(fail -Wl,-whole-archive ${experiment_libraries} fail-sal fail-cpn fail-efw fail-comm fail-util -Wl,-no-whole-archive)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment