Subject: Re: linking PIC files with non-PIC files
To: None <port-pmax@netbsd.org>
From: Daniel Senderowicz <daniel@bicho.SynchroDS.COM>
List: port-pmax
Date: 09/19/2000 19:56:30
Simon,
You posted once this solution to a specific case (building ssh).
In my case I'm trying to compile a program that is a mixture of
c++, c, and fortran and getting the following lines:
g++ -o freeloop -L/usr/X11R6/lib main.o calc.o ....screen.o -lXext -lX11 /usr/local/lib/liblapack_NetBSD.a /usr/local/lib/libblas_NetBSD.a -lc /usr/local/lib/libquadpack.a /usr/pkg/lib/libf2c.a -lm -lgnumalloc -Wl,-rpath,/usr/X11R6/lib
/usr/bin/ld: dqagi.o: linking PIC files with non-PIC files
Bad value: failed to merge target specific data of file /usr/local/lib/libquadpack.a(dqagi.o)
.......etc.....
How do I avoid the problem? Many thanks in advance.
Dan