Re: [COMMITTERS] 'pgsql/src/template linux-elf'

Started by Thomas G. Lockhartalmost 28 years ago2 messages
#1Thomas G. Lockhart
lockhart@alumni.caltech.edu

Modified Files:
linux-elf
Log Message:

Remove -m486 option, since it is platform specific...this should technically
be removed everywhere, but so far linux-elf is the only platform that is
being reported a problem with...

Hmm. I don't think there was a problem reported, only a complaint that the
-m486 was suboptimal for 586 and 686 machines. The proposed solution was not in
keeping with the Postgres philosophy of not requiring root privilege for an
install, since it involved modifying or adding /usr/lib compiler settings
files. With the flag removed, standard compiler settings will generate 386
code. Yuck...

Andrew, could you put a new entry into the Linux FAQ suggesting that

CFLAGS+= -m486

or (for the new compilers that most people are not yet running)

CFLAGS+= -mpentium
or
CFLAGS+= -mpentiumpro

be added to Makefile.custom? Otherwise people are going to get 386 code generation
for most installations...

- Tom

#2Andrew Martin
martin@biochemistry.ucl.ac.uk
In reply to: Thomas G. Lockhart (#1)
RE: [HACKERS] Re: [COMMITTERS] 'pgsql/src/template linux-elf'

Andrew, could you put a new entry into the Linux FAQ suggesting that

CFLAGS+= -m486

or (for the new compilers that most people are not yet running)

CFLAGS+= -mpentium
or
CFLAGS+= -mpentiumpro

be added to Makefile.custom? Otherwise people are going to get 386 code generation
for most installations...

- Tom

I've done this, but I guess it's not really Linux specific as I presume it
applies to BSD as well...

Andrew

----------------------------------------------------------------------------
Dr. Andrew C.R. Martin University College London
EMAIL: (Work) martin@biochem.ucl.ac.uk (Home) andrew@stagleys.demon.co.uk
URL: http://www.biochem.ucl.ac.uk/~martin
Tel: (Work) +44(0)171 419 3890 (Home) +44(0)1372 275775