[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#794563: iwyu: FTBFS[kfreebsd-*]: undefined reference to `dladdr'



Control: tags -1 + patch

Hi,

A simple patch for this is attached.

Thanks,
Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org
Description: Fix FTBFS on kfreebsd
 Debian GNU/kFreeBSD - like Linux, but unlike FreeBSD - requires
 linking executables with -ldl.
Forwarded: not-needed
Author: Steven Chamberlain <steven@pyro.eu.org>
Last-Update: 2015-09-08

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -166,6 +166,12 @@ else()
       dl
     )
   endif()
+  # ... and Debian GNU/kFreeBSD
+  if( CMAKE_SYSTEM_NAME MATCHES "FreeBSD" )
+    target_link_libraries(include-what-you-use
+      dl
+    )
+  endif()
 endif()
 
 install(TARGETS include-what-you-use

Attachment: signature.asc
Description: Digital signature


Reply to: