diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-10-09 11:31:33 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2015-10-13 07:35:55 +0000 |
commit | e6a071db059b1b84a3570292b3f49844c8108627 (patch) | |
tree | 405edfb9d7b13bd66eda12e0da0721c46be04700 /wsutil | |
parent | 2f454a3f8c5c8d87b346c5b52ce5846625b7053c (diff) | |
download | wireshark-e6a071db059b1b84a3570292b3f49844c8108627.tar.gz wireshark-e6a071db059b1b84a3570292b3f49844c8108627.tar.bz2 wireshark-e6a071db059b1b84a3570292b3f49844c8108627.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>
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wsutil/CMakeLists.txt b/wsutil/CMakeLists.txt index 76d775fe05..364de2fc77 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} |