develooper Front page | perl.perl5.porters | Postings from January 2012

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

Thread Next
From:
James E Keenan via RT
Date:
January 12, 2012 17:08
Subject:
[perl #57518] incorrect lddlflags settings in hints/darwin.sh (perl 5.8.8)
Message ID:
rt-3.6.HEAD-14510-1326416917-301.57518-15-0@perl.org
On Fri Aug 01 15:56:38 2008, vinc17 wrote:
> For perl 5.8.8, the default lddlflags settings from hints/darwin.sh
> 
>   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
> 
>   http://trac.macports.org/ticket/16165
> 
> With the RRDs.pm 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 darwin.sh, epix.sh and rhapsody.sh use $ldflags to set
> lddlflags.
> 


I believe this is, in blead, the part of hints/darwin.sh that the OP is
referring to:

#####
    185    lddlflags="${ldflags} -bundle -undefined dynamic_lookup"
    186    case "$ld" in
    187        *MACOSX_DEVELOPMENT_TARGET*) ;;
    188        *) ld="env MACOSX_DEPLOYMENT_TARGET=10.3 ${ld}" ;;
    189    esac
#####

Are there any Darwin experts on list who could comment about this?

Thank you very much.
Jim Keenan

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org:443/rt3/Ticket/Display.html?id=57518

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About