On Tue, 26 Jul 2005, Niki Waibel wrote:

> On 25-Jul-2005 Andy Dougherty via RT wrote:
> > On Thu, 10 Jun 2005, Niki W. Waibel wrote:
> > 
> >> # New Ticket Created by  "Niki W. Waibel" 
> >> # Please include the string:  [perl #36235]
> >> # in the subject line of all future correspondence about this issue. 
> >> # <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36235 >
> >> 
> >> 
> >> perl on solaris using gcc-3.X and gnu binutils correctly adds -Wl,-E to
> >> to LDFLAGS. it seems that the detection of the gnu binutils is somehow
> >> broken if gcc-4.X is used.
> > 
> > The detection is done in hints/solaris_2.sh.  It's quite possible that the 
> > output of gcc has changed such that the hints file doesn't pick it up 
> > correctly anymore.

Thanks for the verbose output.  It looks like the problem is that the old 
output of gcc-[23] 'Reading specs from ... ' has been replaced in gcc-4 
(at least in this configuration) by 'Using built-in specs'.

The following simple patch to hints/solaris_2.sh might be enough to get 
things to work.  Could you try it out?  (apply with patch -p1).  You'll 
have to remove your old config.sh before re-running Configure.

        rm config.sh
        sh Configure [whatever options you want]

--- perl-current/hints/solaris_2.sh     Sun May 22 10:38:40 2005
+++ perl-andy/hints/solaris_2.sh        Tue Jul 26 11:29:22 2005
@@ -211,7 +211,10 @@
        # Indent to avoid propagation to config.sh
        verbose=`${cc:-cc} -v -o try try.c 2>&1`
 
-if echo "$verbose" | grep '^Reading specs from' >/dev/null 2>&1; then
+# XXX TODO:  'specs' output changed from 'Reading specs from' in gcc-[23] to 
'Using
+# built-in specs' in gcc-4.  Perhaps we should just use the same gcc test as
+# in Configure to see if we're using gcc.
+if echo "$verbose" | egrep '(Reading specs from)|(Using built-in specs)' 
>/dev/null 2>&1; then
        #
        # Using gcc.
        #
-- 
    Andy Dougherty              [EMAIL PROTECTED]

Reply via email to