c - PIC/non-PIC code errors when cross compiling -


this totally outside area of expertise, forgive me if seems rather elementary. i've never worked c, bit new me. i've been tasked cross-compiling the isc's dhcp implementation mips. have compiler (mipsel-linux-gcc) , other assorted tools , compiles fine fails when linking on every file:

bad value: failed merge target specific data of file ... linking pic files non-pic files

-fpic , -fno-pic changed nothing. there simple solution this, or need start rewriting chunks of software? input appreciated, i'm @ bit of loss.

my configure line follows:

./configure cc=mipsel-linux-gcc cpp=mipsel-linux-cpp --host=mips --build=i686-pc-linux-gnu 

something's wrong libraries you're linking in. make sure have standard library compiled pic, , link it, not system's.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -