CFLAGS should work... you might have to delete your previous build
from the builds directory for the cached values to be cleared.
Bill
On Oct 17, 2009, at 10:54 AM, Yvan Vander Sanden wrote:
> Hey.
>
> I am trying to compile pike as a library for embedding in a c++
> application.
>
> Using the command "make libpike" i get this error at the end of the
> process:
>
> Linking libpike.so
> /usr/bin/ld: language.o: relocation R_X86_64_32 against `a local
> symbol' can not be used when making a shared object; recompile with
> -fPIC
> language.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> Linking failed:
....
>
>
> This makes sense, adding fPIC when compiling a library. Normally,
> I'd add fPIC to the CFLAGS variable, but apparently that is not
> used in the pike build system. I'm staring at the Makefile for some
> time now, but have not found yet where to add fPIC. Anyone
> encountered this before?
>
> Regards,
>
> yvan
|