Patch from Aurora SPARC linux project -- -fpic verus -fPIC.

From: Lamar Owen <lamar(dot)owen(at)wgcr(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Patch from Aurora SPARC linux project -- -fpic verus -fPIC.
Date: 2003-05-17 03:51:31
Message-ID: 200305162351.31496.lamar.owen@wgcr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I received a patch the other day from Tom Callaway ('spot'), who is the lead
for the Aurora SPARC Linux project (auroralinux.org) He is working through
updating Aurora to a Red Hat 9 base, up from the current (very stable) Red
Hat 7.3 base.

I am an Aurora user, and am using PostgreSQL 7.2.4 on Aurora 1.0 in
production.

The patch is attached, but brings up a question that I have already briefly
discussed with Tom Lane, who's suggestion was interesting. The patch is
intended to change the existing '-fpic' gcc option to '-fPIC' for sparc, for
the CFLAGS_SL in src/makefiles/Makefile.linux. Tom's suggestion, which I had
given cursory thought to when I received the patch, is to change to -fPIC
across the board instead of -fpic.

Is there a good reason to use -fpic instead of -fPIC? PostgreSQL 7.2.4
compiles and links fine on SPARC under the gcc 2.96RH compiler; 7.3.2 does
not link OK under the gcc 3.2 compiler, both with -fpic.
--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11

Attachment Content-Type Size
postgresql-732-sparc.patch text/x-diff 535 bytes

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Meskes 2003-05-17 09:06:01 Re: ECPG timestamp.c
Previous Message Dann Corbit 2003-05-17 03:35:12 Re: Error message style guide, take 2 {just for ideas to kick around...}