Skip to content

Commit

Permalink
Remove -rdynamic on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
btrkeks committed Sep 30, 2024
1 parent 5e3e3d4 commit aa7b126
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,13 @@ find_package(Gettext REQUIRED)
set(GETTEXT_PACKAGE ${PROJECT_NAME})
set(LOCALEDIR ${CMAKE_INSTALL_FULL_LOCALEDIR})

if(WIN32)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWIN32_LEAN_AND_MEAN")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--export-all-symbols")
else()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -rdynamic")
endif()

add_definitions(-DGETTEXT_PACKAGE="${GETTEXT_PACKAGE}")
add_definitions(-DLOCALEDIR="${LOCALEDIR}")

Expand Down Expand Up @@ -379,7 +386,6 @@ target_link_libraries(dictpopup PRIVATE
PkgConfig::NOTIFY
CURL::libcurl
libzip::zip
-rdynamic
)

if (X11_FOUND)
Expand Down

0 comments on commit aa7b126

Please sign in to comment.