summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2015-09-08 07:06:22 +0000
committerSylvestre Ledru <sylvestre@debian.org>2015-09-08 07:06:22 +0000
commit543ba75e282668598833f8f335fd6079ac19e6c5 (patch)
treeee3ae123c61911e7de04c5be890e75192cd43601
parentc32fc29437d9ca94a299d6a0dff4b46eec1b686f (diff)
Fix the FTBFS under kfreebsd
Thanks to Steven Chamberlain for the patch (Closes: #794563)
-rw-r--r--debian/changelog8
-rw-r--r--debian/patches/kfreebsd.diff22
-rw-r--r--debian/patches/series1
3 files changed, 31 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 2c1fc56..e648398 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+iwyu (3.6-2) unstable; urgency=medium
+
+ * Fix the FTBFS under kfreebsd
+ Thanks to Steven Chamberlain for the patch
+ (Closes: #794563)
+
+ -- Sylvestre Ledru <sylvestre@debian.org> Tue, 08 Sep 2015 08:48:51 +0200
+
iwyu (3.6-1) unstable; urgency=low
* Team upload (Sylvestre prepared the upload)
diff --git a/debian/patches/kfreebsd.diff b/debian/patches/kfreebsd.diff
new file mode 100644
index 0000000..d5ad20f
--- /dev/null
+++ b/debian/patches/kfreebsd.diff
@@ -0,0 +1,22 @@
+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
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..56359a5
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+kfreebsd.diff