You are not logged in.

#1 2010-07-21 01:37:38

JohnnyRogers
Member
Registered: 2009-10-24
Posts: 32

Compile from AUR with "-fPIC" option?

I'm feeling fairly stupid for not being able to answer this question myself, but the things I'm finding on the forums and with google aren't helping.

I'm trying to build pithos-bzr http://aur.archlinux.org/packages.php?ID=36423, but I keep getting this:

/usr/bin/ld: /tmp/cckv1Tq0.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/tmp/cckv1Tq0.o: could not read symbols: Bad value

/tmp/cckv1tq0.o seems to need to be recompiled with -fPIC, but it's an unowned temp file so I'm stumped. I tried adding -fPIC to my /etc/makepkg.conf (CXXFLAGS at the end), and I tried adding

export CFLAGS="$CFLAGS -fPIC"
export CXXFLAGS=$CFLAGS

near the beginning of the build section in the pkgbuild file (as described here https://bbs.archlinux.org/viewtopic.php?id=28522.

I did do a bunch of reading before posting, but more material or suggestions would be greatly appreciated.

Offline

Board footer

Powered by FluxBB