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
Post a Comment