On Tue, Nov 25, 2003 at 12:50:38PM +0000, 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

Reply via email to