libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

$ORIGIN support for Libtool


From: Ethan Mallove
Subject: $ORIGIN support for Libtool
Date: Fri, 20 Feb 2009 16:14:13 -0500
User-agent: Mutt/1.5.17 (2007-11-01)

Hi,

I am using the run-time linker $ORIGIN variable with Libtool in an
apparently unsupported way to create relocatable objects. After
Libtool generates a "libtool" script, I am commenting out the below
lines:

 func_fatal_help "\`$destdir' must be an absolute directory name"
 func_fatal_error "only absolute run-paths are allowed"

I then manually reassign hardcode_libdir_flag_spec variable from this:

  hardcode_libdir_flag_spec="-R\$libdir"

To something like this:

  ORIGIN="\$ORIGIN"
  dollar="\$"
  hardcode_libdir_flag_spec="-R${dollar}ORIGIN"

The "dollar" and "ORIGIN" variables are hacks to prevent $ORIGIN from
eval-ing down to an empty string. Is there a cleaner way to use
$ORIGIN in Libtool, that avoids the above hackery?

Regards,
Ethan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]