develooper Front page | perl.perl5.porters | Postings from August 2008

[perl #57518] incorrect lddlflags settings in hints/ (perl 5.8.8)

Vincent Lefevre
August 2, 2008 05:00
[perl #57518] incorrect lddlflags settings in hints/ (perl 5.8.8)
Message ID:
# New Ticket Created by  Vincent Lefevre 
# Please include the string:  [perl #57518]
# in the subject line of all future correspondence about this issue. 
# <URL: >

For perl 5.8.8, the default lddlflags settings from hints/

  lddlflags="${ldflags} -bundle -undefined dynamic_lookup"

seems to be incorrect. The reason is that a -L... flag provided in
$LDFLAGS will have the precedence over the -L flags relative to the
build directory, meaning that the link may be done against an old
library version. For instance, see

With the module from rrdtool, the RRDs.bundle file is produced
by the command:

  env MACOSX_DEPLOYMENT_TARGET=10.3 cc  -L/opt/local/lib -bundle -undefined dynamic_lookup RRDs.o -L../../src/.libs/  -lrrd  -o blib/arch/auto/RRDs/RRDs.bundle

As you can see, -L/opt/local/lib is before -L../../src/.libs/ hence the
problem during an upgrade of the module.

grep -r 'lddlflags=.*${\?ldflags' hints

shows that only, and use $ldflags to set

Vincent Lefèvre <> - Web: <>
100% accessible validated (X)HTML - Blog: <>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon) Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About