develooper Front page | perl.perl5.build | Postings from February 2004

RE: Replacing '-rdynamic' in Configure script

From:
Green, Paul
Date:
February 24, 2004 04:28
Subject:
RE: Replacing '-rdynamic' in Configure script
Message ID:
A2A34F15EE916148BC4C4748223E67A4084133A6@exna4.stratus.com
The gcc specs file (/usr/lib/gcc-lib/<ARCH_STRING>/<VERSION>/specs) is the
file that contains all of the control arguments that gcc accepts.  You can
edit it; it is just text.  I would speculate that the control arg got
renamed over time, or was perhaps once experimental under its old name.  But
I haven't used a gcc with this feature, so I'm just guessing.

At any rate, if the specs file says they are equivalent, and the double-dash
version is documented, then that should be authoritative.

PG

> -----Original Message-----
> From: H.Merijn Brand [mailto:h.m.brand@hccnet.nl] 
> Sent: Monday, February 23, 2004 5:18 PM
> To: perl5-build@perl.org
> Subject: Fw: Replacing '-rdynamic' in Configure script
> 
> 
> Anyone with a more profound gcc knowledge has an opinion on this?
> 
> Forwarded by "H.Merijn Brand" <h.m.brand@hccnet.nl>
> ----------------------- Original Message -----------------------
>  From:    Art Haas <ahaas@airmail.net>
>  To:      perl5-porters@perl.org
>  Date:    Fri, 20 Feb 2004 13:53:56 -0600
>  Subject: Replacing '-rdynamic' in Configure script
> ----
> 
> Hi.
> 
> I'm running Perl on Linux, and have wondered why the 
> 'Configure' script suggests using '-rdynamic' for linking the 
> Perl binary. The GCC documentation does not mention 
> '-rdynamic', and after hunting around a bit for some info on 
> it I found that it appears in the gcc specs file, and is 
> apparently another way to specify '--export-dynamic'. So, 
> instead of using this undocumented (in my GCC-3.5 CVS code) 
> flag, replace it with a call to the linker to use '--export-dynamic'.
> 
> I don't have a patch prepared, but all that would be required 
> would be to change line 7630 in Configure from
> 
> linux)  dflt='-rdynamic' ;;
> 
> to
> 
> linux) dflt='-Wl,-E' # or '-Wl,--export-dynamic'.
> 
> When configuring Perl, I've been replacing '-rdynamic' with 
> '-Wl,--export-dynamic', and things have worked flawlessly.
> 
> Thanks for hearing me out, and thanks to all the Perl developers.
> 
> Art Haas
> 
> --------------------- Original Message Ends --------------------
> 
> -- 
> H.Merijn Brand        Amsterdam Perl Mongers 
> (http://amsterdam.pm.org/)
> using perl-5.6.1, 5.8.0, & 5.9.x, 
> and 806 on  HP-UX 10.20 & 11.00, 11i,
>    AIX 4.3, SuSE 8.2, and Win2k.           
> http://www.cmve.net/~merijn/
> 
http://archives.develooper.com/daily-build@perl.org/   perl-qa@perl.org
send smoke reports to: smokers-reports@perl.org, QA: http://qa.perl.org



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