Re: system libraries that need -R/path/

2003-11-25 Thread Albert Chin
On Tue, Nov 25, 2003 at 12:50:38PM +, Gary V. Vaughan wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Harlan Stenn wrote:
> | Does somebody have an autoconf macro to handle adding -R/path/ stuff when
> | libraries are found?
> |
> | It would be nice if it also had the ability to handle cross compiling.
> |
> | This came up for ntp - if the shared library of libcrypto is found the
> | -L flag is set, but no -R flag is set.
> |
> | I suspect other folks have had to deal with this...
> 
> AC_LIBTOOL_PROG_LD_SHLIBS sets hardcode_libdir_flag_spec,
> hardcode_libdir_flag_spec_ld and hardcode_libdir_separator.  Currently this
> macro isn't designed to run outside AC_PROG_LIBTOOL and has some implicit
> dependencies on other macros in libtool.m4 that we haven't analysed yet.  
> With
> a little cleanup it shouldn't be difficult to pull it out into a separate
> file, along with the macros it really needs, so that aclocal can do the 
> right
> thing.
> 
> Patches greatfully accepted.

If libtool was used rather than the compiler *during* ./configure you
wouldn't have to worry about -R. However, you might find this useful:
  http://mail.gnu.org/archive/html/autoconf/2002-05/msg00124.html

It was mentioned recently on this list.

-- 
albert chin ([EMAIL PROTECTED])


___
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool


Re: system libraries that need -R/path/

2003-11-25 Thread Gary V. Vaughan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Harlan Stenn wrote:
| Does somebody have an autoconf macro to handle adding -R/path/ stuff when
| libraries are found?
|
| It would be nice if it also had the ability to handle cross compiling.
|
| This came up for ntp - if the shared library of libcrypto is found the
| -L flag is set, but no -R flag is set.
|
| I suspect other folks have had to deal with this...
AC_LIBTOOL_PROG_LD_SHLIBS sets hardcode_libdir_flag_spec,
hardcode_libdir_flag_spec_ld and hardcode_libdir_separator.  Currently this
macro isn't designed to run outside AC_PROG_LIBTOOL and has some implicit
dependencies on other macros in libtool.m4 that we haven't analysed yet.  With
a little cleanup it shouldn't be difficult to pull it out into a separate
file, along with the macros it really needs, so that aclocal can do the right
thing.
Patches greatfully accepted.

Cheers,
Gary.
- --
Gary V. Vaughan  ())_.  [EMAIL PROTECTED],gnu.org}
Research Scientist   ( '/   http://www.oranda.demon.co.uk
GNU Hacker   / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQE/w1AeFRMICSmD1gYRAtabAJ41unWsXHieKFQ/Z7IwlR4mcKaMMQCgv898
9TnN/I+lC8yRP3GUOrXs+aM=
=GTfT
-END PGP SIGNATURE-


___
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool