cogenda / Genius-TCAD-Open

Open-source version of the Genius Semiconductor Device Simulator
http://www.cogenda.com
Other
119 stars 69 forks source link

Compilation fails with “relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object #30

Open andruo opened 7 years ago

andruo commented 7 years ago

Hello, When I try to compile 'Genius-TCAD-Open' with waf, I get an error:

[653/655] cxxprogram: ... /usr/bin/ld: //usr/local/lib/libcgns.a(cgnslib.o): Compilation fails with “relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC //usr/local/lib/libcgns.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status

Is anybody know where needs to add the flag -fPIC in the wscript? Regard, Andrey Osykin