From: Alastair McKinstry Date: Sat, 12 Jan 2019 11:05:00 +0000 (+0200) Subject: libtool: Add support for netbsdelf X-Git-Tag: v2.5.4~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8342fed94a7f5ab61cf8822b51726276b41e75b8;p=thirdparty%2Flibtool.git libtool: Add support for netbsdelf * m4/libtool.m4: Add support for netbsdelf*-gnu. * m4/ltdl.m4: Append netbsdelf*-gnu to netbsd* occurrences in case statements. --- diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 03c41063f..c75ad3c52 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -2965,6 +2965,18 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) dynamic_linker='GNU/Linux ld.so' ;; +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + netbsd*) version_type=sunos need_lib_prefix=no @@ -3623,7 +3635,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; -netbsd*) +netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else @@ -4502,7 +4514,7 @@ m4_if([$1], [CXX], [ ;; esac ;; - netbsd*) + netbsd* | netbsdelf*-gnu) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise @@ -5338,7 +5350,7 @@ _LT_EOF fi ;; - netbsd*) + netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= @@ -5881,7 +5893,7 @@ _LT_EOF esac ;; - netbsd*) + netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else diff --git a/m4/ltdl.m4 b/m4/ltdl.m4 index af2440896..8ed76ab7e 100644 --- a/m4/ltdl.m4 +++ b/m4/ltdl.m4 @@ -495,7 +495,7 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen], # at 6.2 and later dlopen does load deplibs. lt_cv_sys_dlopen_deplibs=yes ;; - netbsd*) + netbsd* | netbsdelf*-gnu) lt_cv_sys_dlopen_deplibs=yes ;; openbsd*)