>From 70e520f08773beed6c49c5bf70883cf5c3c69e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Thom=C3=A9?= Date: Tue, 27 Jun 2017 23:09:23 +0200 Subject: [PATCH] shlibpath_overrides_runpath=no for freebsd 9.2+ and dragonfly 3.2.0+ LD_LIBRARY_PATH no longer takes precedence over rpath for these releases. dragonfly bsd commit is 4f0bc915b65fcf5a23214f6d221d65c80be68ad4 --- m4/libtool.m4 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 597c6042..7d971b8c 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -2715,10 +2715,19 @@ freebsd* | dragonfly*) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; - *) # from 4.6 on, and DragonFly + freebsd4.[[6-9]] | freebsd4.10 | freebsd4.11 | \ + freebsd[[5-8]].* | \ + freebsd9.[[0-1]] | \ + dragonfly[[1-2]].* | \ + dragonfly3.0*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; + *) # Since FreeBSD 9.2 and DragonFly 3.2.0 + # In fact, we could also use LD_LIBRARY_PATH_RPATH=1. + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; esac ;; -- 2.13.0