]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool.m4: Update hardcode_shlibpath_var for OpenBSD
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Wed, 30 Oct 2024 18:32:25 +0000 (20:32 +0200)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Wed, 20 Nov 2024 14:42:38 +0000 (16:42 +0200)
When generating an executable in OpenBSD, the executable fails to
generate when shlibpath_var, LD_LIBRARY_PATH, is used solely to
locate dependent libraries.

For hardcoding library paths in OpenBSD, see documentation for
hardcode_direct and hardcode_libdir_flag_spec.

* m4/libtool.m4: Update hardcode_shlibpath_var from 'no' to 'unsupported'
  by removing 'with_gnu_ld=no' for OpenBSD.

m4/libtool.m4

index d0d36865919efff195a1ee5eb8f2e9b3eb8337f7..2955adebf26978a4002ec55c55e009a4cb9a70e3 100644 (file)
@@ -5091,9 +5091,6 @@ dnl Note also adjust exclude_expsyms for C++ above.
     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
     with_gnu_ld=yes
     ;;
-  openbsd*)
-    with_gnu_ld=no
-    ;;
   esac
 
   _LT_TAGVAR(ld_shlibs, $1)=yes