[PATCH 2/2] Add patch to fix OS detection.
Without that patch, SHFLAGS isn't set on GNU/kFreeBSD and GNU/Hurd,
which leads in turn to missing flags (like “-lm”), resulting in broken
linking.
---
...7_add_support_for_non_linux_architectures.patch | 12 ++++++++++++
debian/patches/series | 1 +
2 files changed, 13 insertions(+), 0 deletions(-)
create mode 100644 debian/patches/07_add_support_for_non_linux_architectures.patch
diff --git a/debian/patches/07_add_support_for_non_linux_architectures.patch b/debian/patches/07_add_support_for_non_linux_architectures.patch
new file mode 100644
index 0000000..8e83026
--- /dev/null
+++ b/debian/patches/07_add_support_for_non_linux_architectures.patch
@@ -0,0 +1,12 @@
+Fix OS detection for GNU/kFreeBSD and GNU/Hurd.
+--- a/configure.in
++++ b/configure.in
+@@ -118,7 +118,7 @@ SHFLAGS=
+ OTHERLIBS=
+ if test "$shared" = true; then
+ case "$target_os" in
+- linux*)
++ linux*|k*bsd*-gnu|gnu*)
+ SHFLAGS="-fPIC"
+ ;;
+ solaris*)
diff --git a/debian/patches/series b/debian/patches/series
index 2ba1f62..0946716 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
04_add_info_section.patch
05_alsa_audio_playback_support
06_add_info_document_dir_entry.patch
+07_add_support_for_non_linux_architectures.patch
--
1.6.3.3
Reply to: