[PD] 64bits dilemma (pidip)

IOhannes m zmoelnig zmoelnig at iem.at
Mon Mar 13 11:02:34 CET 2006


patco wrote:
> Hi,
> 
>  gcc -o ../bin/pddplink.pd_linux -fPIC -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses
> -Wno-switch  -O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing  -DUNIX  -I . -I
> ../../../pd/src -I ../shared  -export_dynamic -shared  pddplink.o ../shared/common/loud.o
> ../shared/common/os.o
> /usr/bin/ld: pddplink.o: relocation R_X86_64_32 against `a local symbol' can not be used when
> making a shared object; recompile with -fPIC

"-fPIC" is needed at compile time, not at linking time (the gcc-line you
are giving is doing linkage!)
you have to "make clean" first, so all the .o files which were compiled
without "-fPIC" will be re-compiled with this flag enabled.


> I've also tried to place it everywhere in the makefile.

not very sophisticated....

mfg.asd.r
IOhannes




More information about the Pd-list mailing list