On Thu, 22 Feb 2007, Tom Callaway wrote: > As part of the review process for Perl, I'm opening bugs for the > long list of patches to perl that Fedora has been carrying around > (in some cases, for years), in the hopes that these fixes can be > applied upstream. Unfortunately, I am not the original author of > these patches, so please be patient with me as I attempt to > describe why Fedora uses them. Thank you for doing this. This sort of feedback from large and diverse user communities is very helpful. > Linux supports a wide range of architectures, and while most of them > are ok with -fpic, some of them (e.g. SPARC) need -fPIC. To be safe, > Linux should default to -fPIC. That sounds like a good plan. I haven't tested it for years, but a long time ago I did find a measurable difference between -fpic and -fPIC. However, the safer default of -fPIC makes sense. If anyone would care to test -fpic for a particular architecture and override the default for that particular architecture, that would be fine too, but as you say, the safer choice should be the default. > --- perl-5.8.1-RC4/Configure.fpic 2003-08-02 00:47:58.000000000 > -0400 > +++ perl-5.8.1-RC4/Configure 2003-08-02 00:50:08.000000000 -0400 > @@ -7501,7 +7501,7 @@ > ;; > *) case "$osname" in > darwin) dflt='none' ;; > - svr4*|esix*|solaris|nonstopux) dflt='-fPIC' ;; > + linux*|svr4*|esix*|solaris|nonstopux) > dflt='-fPIC' ;; > *) dflt='-fpic' ;; > esac ;; > esac ;; > > ----------------------------------------------------------------- -- Andy Dougherty doughera@lafayette.eduThread Previous | Thread Next