Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Aug 1999 18:38:42 -0500 (CDT)
From:      Steve Price <sprice@hiwaay.net>
To:        reg@shale.csir.co.za
Cc:        freebsd-ports@FreeBSD.ORG
Subject:   Re: 'libtool --mode=link ...' ignores -rpath
Message-ID:  <Pine.OSF.4.10.9908101825020.4341-100000@fly.HiWAAY.net>
In-Reply-To: <Pine.OSF.4.10.9908100019200.31651-100000@fly.HiWAAY.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 10 Aug 1999, I wrote:

[snip]

It is definitely a problem with libtool ignoring '-rpath' when
linking libraries.  libtool gobbles up all occurrences of *rpath
and chucks them out the window except when linking binaries.
No easy fixes that I can see, but I did notice a couple of minor
nits.  The following patch should be more or less a NOP on the
supported platforms, but reflect reality a little closer than
before.

-steve

Index: patches/patch-ac
===================================================================
RCS file: /home/ncvs/ports/devel/libtool/patches/patch-ac,v
retrieving revision 1.7
diff -u -r1.7 patch-ac
--- patch-ac	1999/05/29 03:45:24	1.7
+++ patch-ac	1999/08/10 22:44:04
@@ -1,5 +1,5 @@
---- ltconfig.orig	Thu Apr 29 15:30:36 1999
-+++ ltconfig	Sat May 22 15:52:24 1999
+--- ltconfig.orig	Thu Apr 29 08:30:36 1999
++++ ltconfig	Tue Aug 10 17:43:52 1999
 @@ -169,7 +169,7 @@
  # Constants:
  PROGRAM=ltconfig
@@ -48,6 +48,24 @@
      echo "$ac_t"yes 1>&6
    else
      echo "$ac_t"no 1>&6
+@@ -1277,7 +1281,7 @@
+   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+   freebsd*)
+     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts'
+-    hardcode_libdir_flag_spec='-R$libdir'
++    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
+     hardcode_direct=yes
+     hardcode_shlibpath_var=no
+     ;;
+@@ -1647,7 +1651,7 @@
+ version_type=none
+ dynamic_linker="$host_os ld.so"
+ sys_lib_dlsearch_path_spec="/lib /usr/lib"
+-sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
++sys_lib_search_path_spec="/lib /usr/lib"
+ file_magic_cmd=
+ file_magic_test_file=
+ deplibs_check_method='unknown'
 @@ -1742,19 +1746,17 @@
    case "$version_type" in
      freebsd-elf*)



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.4.10.9908101825020.4341-100000>