forked from macports/macports-ports
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plfit: fix running tests, fix build with gcc
- Loading branch information
1 parent
2750de4
commit 6c11a1c
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- src/CMakeLists.txt 2024-11-21 17:12:31.000000000 +0800 | ||
+++ src/CMakeLists.txt 2024-12-03 09:42:09.000000000 +0800 | ||
@@ -25,7 +25,7 @@ | ||
target_link_libraries(plfit OpenMP::OpenMP_C) | ||
endif() | ||
|
||
-if(CMAKE_C_COMPILER_ID STREQUAL "GNU") | ||
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT APPLE) | ||
set_target_properties(plfit PROPERTIES LINK_FLAGS "-Wl,--version-script=${PROJECT_SOURCE_DIR}/src/plfit.map") | ||
set_target_properties(plfit PROPERTIES LINK_DEPENDS ${PROJECT_SOURCE_DIR}/src/plfit.map) | ||
endif() |