[CMake] Cleanup the CMakeLists.txt file a bit
@@ -137,7 +137,7 @@ else()
endif()
-add_definitions(-g -std=gnu99 -funwind-tables -O3 -fvisibility=hidden)
+add_definitions(-std=gnu99 -funwind-tables -fvisibility=hidden)
if(USE_CCACHE)
find_program(CCACHE_FOUND ccache)
@@ -387,8 +387,9 @@ if(ARM_DYNAREC)
target_link_libraries(${BOX86} dynarec)
endif()
+target_link_options(${BOX86} PUBLIC -rdynamic)
if(NOT NOLOADADDR)
- target_link_libraries(${BOX86} -Wl,-Ttext-segment,0x73800000)
+ target_link_options(${BOX86} PUBLIC -Wl,-Ttext-segment,0x73800000)
endif()
string(COMPARE EQUAL "${CMAKE_HOST_SYSTEM_PROCESSOR}" "i686" _x86)
