Do not add -R$dir in X11 link options on GNU/kFreeBSD
authorStephane Glondu <steph@glondu.net>
Tue, 1 Nov 2011 14:30:03 +0000 (15:30 +0100)
committerStephane Glondu <steph@glondu.net>
Tue, 1 Nov 2011 14:30:03 +0000 (15:30 +0100)
debian/patches/0015-Do-not-add-R-dir-in-X11-link-options-on-GNU-kFreeBSD.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0015-Do-not-add-R-dir-in-X11-link-options-on-GNU-kFreeBSD.patch b/debian/patches/0015-Do-not-add-R-dir-in-X11-link-options-on-GNU-kFreeBSD.patch
new file mode 100644 (file)
index 0000000..9e64f26
--- /dev/null
@@ -0,0 +1,22 @@
+From: Stephane Glondu <steph@glondu.net>
+Date: Tue, 1 Nov 2011 15:28:15 +0100
+Subject: Do not add -R$dir in X11 link options on GNU/kFreeBSD
+
+Signed-off-by: Stephane Glondu <steph@glondu.net>
+---
+ configure |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/configure b/configure
+index d6ba2e3..20b4b17 100755
+--- a/configure
++++ b/configure
+@@ -1373,6 +1373,7 @@ do
+     else
+       x11_libs="-L$dir"
+       case "$host" in
++        *-kfreebsd*-gnu) x11_link="-L$dir -lX11";;
+         *-*-*bsd*) x11_link="-R$dir -L$dir -lX11";;
+         *) x11_link="-L$dir -lX11";;
+       esac
+-- 
index 92b52ed54080122d07ee7055304beffa0228dc5a..c5cc03843b7dc9bd8d6a3dbcdf75088f61e45563 100644 (file)
@@ -12,3 +12,4 @@
 0012-Make-objinfo-show-force_link-and-ccobjs-ccopts-when-.patch
 0013-ocamlopt-arm-add-.type-directive-for-code-symbols.patch
 0014-Add-support-for-ENOTSUP.patch
+0015-Do-not-add-R-dir-in-X11-link-options-on-GNU-kFreeBSD.patch