* Help on gcc compiler option
@ 2001-01-21 19:29 Azreen Bin Ahmad
2001-01-21 19:48 ` Alexandre Oliva
0 siblings, 1 reply; 2+ messages in thread
From: Azreen Bin Ahmad @ 2001-01-21 19:29 UTC (permalink / raw)
To: 'gcc-help@gcc.gnu.org'
Hi,
Being new to gcc, need help on this:
I am having problems installing perl DB_File module with each time it gives
a specific error. The notes pointed to the need to configure Berkeley DB
with the "CFLAGS=+z" option (for HP-UX platform). However, this +z is only
for the native C compiler, while I specified env "CC=gcc" to use gcc.
I tried looking up (to no avail) for info on the equivalent of C's +z option
in gcc. Being new to this, i really appreciate any help. Thanks in
advance. below are some extracts of the notes from README for DB_File
(1.73) .
HP-UX Notes
-----------
Some people running HP-UX 10 have reported getting an error like this
when building DB_File with the native HP-UX compiler.
ld: (Warning) At least one PA 2.0 object file (DB_File.o) was detected.
The linked output may not run on a PA 1.x system.
ld: Invalid loader fixup for symbol "$000000A5".
If this is the case for you, Berkeley DB needs to be recompiled with
the +z or +Z option and the resulting library placed in a .sl file. The
following steps should do the trick:
1: Configure the Berkeley DB distribution with the +z or +Z C compiler
flag:
env "CFLAGS=+z" ../dist/configure ...
2: Edit the Berkeley DB Makefile and change:
"libdb= libdb.a" to "libdb= libdb.sl".
3: Build and install the Berkeley DB distribution as usual.
warm regards
azreen
S'pore
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Help on gcc compiler option
2001-01-21 19:29 Help on gcc compiler option Azreen Bin Ahmad
@ 2001-01-21 19:48 ` Alexandre Oliva
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2001-01-21 19:48 UTC (permalink / raw)
To: Azreen Bin Ahmad; +Cc: 'gcc-help@gcc.gnu.org'
On Jan 22, 2001, Azreen Bin Ahmad <azreena@starhub.com.sg> wrote:
> I tried looking up (to no avail) for info on the equivalent of C's
> +z option in gcc.
It's -fPIC.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-01-21 19:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-21 19:29 Help on gcc compiler option Azreen Bin Ahmad
2001-01-21 19:48 ` Alexandre Oliva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).