aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2015-10-09 11:31:33 +0200
committerPeter Wu <peter@lekensteyn.nl>2015-10-14 16:46:25 +0000
commite4caf132d7b2da30d0d88f50c7cdc4d3603202e0 (patch)
treee4a0a90f7e5eda134787f8cdda9f243d296457fd /wsutil
parentad6accaecee782f0e1d2d2c767663a7f872a9fe9 (diff)
downloadwireshark-e4caf132d7b2da30d0d88f50c7cdc4d3603202e0.tar.gz
wireshark-e4caf132d7b2da30d0d88f50c7cdc4d3603202e0.tar.bz2
wireshark-e4caf132d7b2da30d0d88f50c7cdc4d3603202e0.zip
cmake: link against dl, fixes linking with gold
wsutil/filesystem.c uses dladdr (when available), but does not declare a dependency on it. Adding it fixes a CMAKE_C(XX)_FLAGS=-fuse-ld=gold build failure: run/libwsutil.so.0.0.0: error: undefined reference to 'dladdr' This change is somehow not necessary for autotools, just for cmake. Change-Id: I642a7d85f9c33541831262f930e73d1f47c58b60 Reviewed-on: https://code.wireshark.org/review/10906 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Jörg Mayer <jmayer@loplof.de> Reviewed-by: Peter Wu <peter@lekensteyn.nl> (cherry picked from commit e6a071db059b1b84a3570292b3f49844c8108627) Reviewed-on: https://code.wireshark.org/review/11035
Diffstat (limited to 'wsutil')
-rw-r--r--wsutil/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/wsutil/CMakeLists.txt b/wsutil/CMakeLists.txt
index 97ad047d72..9474073510 100644
--- a/wsutil/CMakeLists.txt
+++ b/wsutil/CMakeLists.txt
@@ -165,6 +165,7 @@ if(APPLE)
endif()
set(wsutil_LIBS
+ ${CMAKE_DL_LIBS}
${APPLE_CORE_FOUNDATION_LIBRARY}
${GMODULE2_LIBRARIES}
${GLIB2_LIBRARIES}