]> Savannah Git Hosting - gnulib.git/commitdiff
relocatable-prog: Add support for MidnightBSD.
authorBruno Haible <bruno@clisp.org>
Sun, 7 Feb 2021 18:31:02 +0000 (19:31 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 7 Feb 2021 18:31:02 +0000 (19:31 +0100)
* m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use the ELF $ORIGIN trick
also on MidnightBSD >= 1.1.
* build-aux/config.libpath: Treat MidnightBSD like FreeBSD.
* build-aux/reloc-ldflags: Likewise.

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

index 483763725a0576be49a96a535482ada6ed45c6ee..4ad32913b2a2286ec917d583ac3dc0ed56c35060 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2021-02-07  Bruno Haible  <bruno@clisp.org>
+
+       relocatable-prog: Add support for MidnightBSD.
+       * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use the ELF $ORIGIN trick
+       also on MidnightBSD >= 1.1.
+       * build-aux/config.libpath: Treat MidnightBSD like FreeBSD.
+       * build-aux/reloc-ldflags: Likewise.
+
 2021-02-07  Bruno Haible  <bruno@clisp.org>
 
        havelib: Add support for MidnightBSD.
index 6d0e55043a64cbccaa23394ce680ca070310ca13..082385735f2a58596e11e3cfd67ebf5cb2d10727 100755 (executable)
@@ -66,7 +66,7 @@ case $host_os in
   dgux*)
     shlibpath_var=LD_LIBRARY_PATH
     ;;
-  freebsd* | dragonfly*)
+  freebsd* | dragonfly* | midnightbsd*)
     shlibpath_var=LD_LIBRARY_PATH
     ;;
   gnu*)
index fff3d79897641396db65562ad3fff69be9987067..ff748fe05cff4a6e36da085e4927c73c4252447a 100755 (executable)
@@ -56,7 +56,7 @@ esac
 origin_token=
 case "$host_os" in
   linux* | gnu* | kfreebsd* | \
-  freebsd* | dragonfly* | \
+  freebsd* | dragonfly* | midnightbsd* | \
   netbsd* | \
   openbsd* | \
   solaris* | \
index a3bd41e48927132d47ab7fd6625675fcb509c06b..c11999e3b78b5c2834b32589d7d69bef786b9f1a 100644 (file)
@@ -1,4 +1,4 @@
-# relocatable.m4 serial 23
+# relocatable.m4 serial 24
 dnl Copyright (C) 2003, 2005-2007, 2009-2021 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -68,10 +68,11 @@ AC_DEFUN([gl_RELOCATABLE_BODY],
         fi
         ;;
 changequote(,)dnl
-      # FreeBSD >= 7.3, DragonFly >= 3.0: yes.
+      # FreeBSD >= 7.3, DragonFly >= 3.0, MidnightBSD >= 1.1: yes.
       freebsd | freebsd[1-7] | freebsd[1-6].* | freebsd7.[0-2]) ;;
       dragonfly | dragonfly[1-2] | dragonfly[1-2].*) ;;
-      freebsd* | dragonfly*) use_elf_origin_trick=yes ;;
+      midnightbsd | midnightbsd0* | midnightbsd1.0*) ;;
+      freebsd* | dragonfly* | midnightbsd*) use_elf_origin_trick=yes ;;
       # NetBSD >= 8.0: yes.
       netbsd | netbsd[1-7] | netbsd[1-7].*) ;;
       netbsdelf | netbsdelf[1-7] | netbsdelf[1-7].*) ;;