libaubio.a (amd64) built without -fPIC
Bug #317864 reported by
cannam
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
aubio (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: libaubio-dev
Attempting to link a dynamic object statically against libaubio on an amd64 install gives the following error:
/usr/bin/ld: /usr/lib/
This is libaubio-dev 0.3.2-2ubuntu1 installed from the 8.10 repositories. I assume the proper solution is just to ensure that the library is compiled with -fPIC as per the message.
To post a comment you must log in.
Hi Chris,
According to the build logs and the debian policy (10.2), the library *is* built with -fPIC.
What command are you using to build statically? On i386, the following command works fine:
$ gcc -o test-phasevoc test-phasevoc.c /usr/lib/libaubio.a /usr/lib/ libfftw3f. a /usr/lib/libm.a
Cheers, Paul