开发者

PIC/non-PIC code errors when cross compiling

开发者 https://www.devze.com 2023-02-24 01:01 出处:网络
This is totally outside my area of expertise, so forgive me if this seems rather elementary.开发者_运维技巧I\'ve never really worked with C, so this is a bit new to me.I\'ve been tasked with cross-com

This is totally outside my area of expertise, so forgive me if this seems rather elementary. 开发者_运维技巧I've never really worked with C, so this is a bit new to me. I've been tasked with cross-compiling the ISC's DHCP implementation into MIPS. I have the compiler (mipsel-linux-gcc) and other assorted tools and it compiles fine but it fails when linking on every file:

Bad value: failed to merge target specific data of file ... linking PIC files with non-PIC files

-fPIC and -fno-PIC changed nothing. Is there a simple solution to this, or will I need to start rewriting chunks of this software? Any input would be appreciated, I'm at a bit of a loss.

My configure line is as follows:

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


Something's wrong with libraries you're linking in. Make sure you have the standard library compiled for PIC, and that you link to it, not your system's.

0

精彩评论

暂无评论...
验证码 换一张
取 消