From owner-freebsd-ports Tue Aug 10 16:41:36 1999 Delivered-To: freebsd-ports@freebsd.org Received: from mail.HiWAAY.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id 9354C14DEB for ; Tue, 10 Aug 1999 16:41:32 -0700 (PDT) (envelope-from sprice@hiwaay.net) Received: from localhost (sprice@localhost) by mail.HiWAAY.net (8.9.1a/8.9.0) with ESMTP id SAA15131; Tue, 10 Aug 1999 18:38:43 -0500 (CDT) Date: Tue, 10 Aug 1999 18:38:42 -0500 (CDT) From: Steve Price To: reg@shale.csir.co.za Cc: freebsd-ports@FreeBSD.ORG Subject: Re: 'libtool --mode=link ...' ignores -rpath In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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