https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64237
Bug ID: 64237 Summary: [5 Regression] glibc build failure Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org trippels@gcc20 nscd % cat nscd.i extern int program_invocation_name; extern void fn2(int, int); void fn1() { fn2(0, program_invocation_name); } trippels@gcc20 nscd % gcc -shared nscd.i -fpie /home/trippels/bin/ld: /home/trippels/tmp/ccoI5Lbg.o: relocation R_X86_64_PC32 against undefined symbol `program_invocation_name@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC /home/trippels/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status