Re: [gtk-list] Re: Perl/GTK
- From: Des Herriott <des ops netcom net uk>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Perl/GTK
- Date: Fri, 21 Aug 1998 07:58:26 +0100
On Aug 20, Christoph Doerbeck wrote:
> Problem solved: I added -fPIC to the CCCDLFLAGS in Makefile
> I'm not a programmer, so if someone has an explination, I'd love
> to hear it. Confidence in my fix is knowing I did something that
> makes sense :)
>
> CCCDLFLAGS = -fpic -fPIC
You're almost there. As you've correctly spotted, -fPIC and -fpic
have different semantics, and -fPIC is needed to avoid global offset
table limits on SPARC (and 68K, I believe). See the "Code Gen Options"
section of gcc's info pages for more info (as it were).
The -fpic option comes from Perl's own configuration, i.e. whoever
installed Perl on your system chose that as the flag to generate PIC
code. Find the file "sun4-solaris/5.00405/Config.pm" in Perl's lib
directory and search for "cccdlflags". The change you need to make
should be obvious :-)
--
Des Herriott
des@ops.netcom.net.uk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]