relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
authorBruno Haible <bruno@clisp.org>
Wed, 2 May 2012 00:49:49 +0000 (02:49 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 2 May 2012 00:49:49 +0000 (02:49 +0200)
* m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
* build-aux/reloc-ldflags: Likewise.
Suggested by Steven Chamberlain <steven@pyro.eu.org>.

ChangeLog
build-aux/reloc-ldflags
m4/relocatable.m4

index 31f6add..55dbe1e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2012-05-01  Bruno Haible  <bruno@clisp.org>
 
+       relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
+       * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
+       * build-aux/reloc-ldflags: Likewise.
+       Suggested by Steven Chamberlain <steven@pyro.eu.org>.
+
+2012-05-01  Bruno Haible  <bruno@clisp.org>
+
        gnulib-tool: Remove transitional code.
        * gnulib-tool: Don't warn about --import with 0 arguments any more.
        Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
index 462ea61..873b585 100755 (executable)
@@ -54,7 +54,7 @@ case "$installdir" in
 esac
 
 case "$host_os" in
-  linux*) # Supported since Linux 2.1 and glibc 2.1.
+  linux* | kfreebsd*)
     rpath=
     save_IFS="$IFS"; IFS=":"
     for dir in $library_path_value; do
index 2a3c920..7901c0c 100644 (file)
@@ -1,4 +1,4 @@
-# relocatable.m4 serial 17
+# relocatable.m4 serial 18
 dnl Copyright (C) 2003, 2005-2007, 2009-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -41,7 +41,7 @@ AC_DEFUN([gl_RELOCATABLE_BODY],
     AC_CHECK_FUNCS([_NSGetExecutablePath])
     case "$host_os" in
       mingw*) is_noop=yes ;;
-      linux*) use_elf_origin_trick=yes ;;
+      linux* | kfreebsd*) use_elf_origin_trick=yes ;;
     esac
     if test $is_noop = yes; then
       RELOCATABLE_LDFLAGS=: