Skip to content

Commit

Permalink
build, refactor: Add -rdynamic flag for non-Windows systems
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Jan 14, 2024
1 parent 127c6af commit 36dd66b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fibjs/program/CMakeLists.txt
Expand Up @@ -100,6 +100,10 @@ foreach(lib ${libs})
endif()
endforeach()

if(NOT ${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows")
set(link_flags "${link_flags} -rdynamic")
endif()

setup_result_library(${name})
setup_result_library(js)

Expand Down

0 comments on commit 36dd66b

Please sign in to comment.