1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: fix detection of dl library (closes #2218)

This fixes the linking to curl and ncurses on macOS.
This commit is contained in:
Sébastien Helleu
2024-12-21 15:03:21 +01:00
parent 9e34a0e917
commit c26ff6c51b
2 changed files with 2 additions and 3 deletions
+1
View File
@@ -8,6 +8,7 @@
### Fixed
- core: fix detection of dl library ([#2218](https://github.com/weechat/weechat/issues/2218))
- logger: fix path displayed when the logs directory can not be created
- perl: fix build with Perl < 5.7.29 ([#2219](https://github.com/weechat/weechat/issues/2219), [#2220](https://github.com/weechat/weechat/issues/2220))
+1 -3
View File
@@ -247,9 +247,7 @@ find_library(DL_LIBRARY
PATHS /lib /usr/lib /usr/libexec /usr/local/lib /usr/local/libexec
)
if(DL_LIBRARY)
string(REGEX REPLACE "/[^/]*$" "" DL_LIBRARY_PATH "${DL_LIBRARY}")
set(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} -L${DL_LIBRARY_PATH}")
list(APPEND EXTRA_LIBS dl)
list(APPEND EXTRA_LIBS ${DL_LIBRARY})
endif()
add_subdirectory(icons)