Summary: | dev-libs/libusb-0.1.11 -fPIC | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Karol Krizka <kkrizka> |
Component: | Current packages | Assignee: | Alastair Tse (RETIRED) <liquidx> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | amd64 |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Karol Krizka
2006-02-08 22:06:31 UTC
amd guys, do i just put -fPIC in the LDFLAGS or is there something a little more subtle? it'd be better to fix the Makefile to build the libs with -fPIC, but I guess this package does only build libraries anyway, so append-flags -fPIC would be okay too (note that it'd be CFLAGS, not LDFLAGS) CFLAGS="-march=athlon64 -mtune=athlon64 -O2 -pipe -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -fomit-frame-pointer -fvisibility=hidden -fvisibility-inlines-hidden" Is incorrect to begin with, -fvisibility=hidden -fvisibility-inlines-hidden are only valid for CXXFLAGS not CFLAGS. You should fix your cflags before you continue I have just updated to 0.1.11 without a problem. Thanks guys for the advice on -fPIC. I'd like the reporter to give some more info before I proceed as anarchy has a good point, I didn't spot that when I first looked at this report. Indeed, I just tried, and it works fine here too. It is probably the visibility flag as it will throw out a warning and therefore configure thinks -fPIC is not a supported flag. Please, clean up your CFLAGS (there are other redundant flags in there too) before you file any other bug. This error is caused by adding the option -fvisibility-inlines-hidden to your CXXFLAGS. This option should really be filtered out by the ebuild, IMO. |