From: Bruno Haible Date: Sun, 7 Feb 2021 18:31:02 +0000 (+0100) Subject: relocatable-prog: Add support for MidnightBSD. X-Git-Tag: v1.0~3083 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=6563dfc2de39cad50333b208a52fe20c57e59556;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 483763725a..4ad32913b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2021-02-07 Bruno Haible + + 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 havelib: Add support for MidnightBSD. diff --git a/build-aux/config.libpath b/build-aux/config.libpath index 6d0e55043a..082385735f 100755 --- a/build-aux/config.libpath +++ b/build-aux/config.libpath @@ -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*) diff --git a/build-aux/reloc-ldflags b/build-aux/reloc-ldflags index fff3d79897..ff748fe05c 100755 --- a/build-aux/reloc-ldflags +++ b/build-aux/reloc-ldflags @@ -56,7 +56,7 @@ esac origin_token= case "$host_os" in linux* | gnu* | kfreebsd* | \ - freebsd* | dragonfly* | \ + freebsd* | dragonfly* | midnightbsd* | \ netbsd* | \ openbsd* | \ solaris* | \ diff --git a/m4/relocatable.m4 b/m4/relocatable.m4 index a3bd41e489..c11999e3b7 100644 --- a/m4/relocatable.m4 +++ b/m4/relocatable.m4 @@ -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].*) ;;