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
This commit is contained in:
@ -47,9 +47,10 @@ elseif(BUILD_QEMU)
|
|||||||
include_directories(simulators)
|
include_directories(simulators)
|
||||||
endif(BUILD_BOCHS)
|
endif(BUILD_BOCHS)
|
||||||
|
|
||||||
## Additional Compiler flags ##
|
## Additional compiler and linker flags ##
|
||||||
set(CMAKE_C_FLAGS "-g -Wall")
|
set(CMAKE_C_FLAGS "-g -Wall")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}")
|
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}")
|
||||||
|
set(CMAKE_EXE_LINKER_FLAGS "-Wl,-gc-sections")
|
||||||
## Tell the linker where to find the Fail* libraries
|
## Tell the linker where to find the Fail* libraries
|
||||||
link_directories("${LIBRARY_OUTPUT_PATH}")
|
link_directories("${LIBRARY_OUTPUT_PATH}")
|
||||||
|
|
||||||
|
|||||||
@ -37,4 +37,4 @@ set(experiment_libraries "")
|
|||||||
foreach(exp_or_plugin ${EXPERIMENTS_ACTIVATED} ${PLUGINS_ACTIVATED})
|
foreach(exp_or_plugin ${EXPERIMENTS_ACTIVATED} ${PLUGINS_ACTIVATED})
|
||||||
set(experiment_libraries ${experiment_libraries} fail-${exp_or_plugin})
|
set(experiment_libraries ${experiment_libraries} fail-${exp_or_plugin})
|
||||||
endforeach(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)
|
||||||
|
|||||||
Reference in New Issue
Block a user