1 | initial version |
in Fedora 23 I suspect that is hardened builds :
/bin/sh ../libtool --tag=CXX --silent --tag=CC --mode=link gcc -O2 -g -pipe -Wall -Werror=format-security Y_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -Wformat -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o bootstrap bootstrap.o -lmpeg3 -lopencv_video -lopencv_objdetect -lopencv_legacy -lm -ldl -lpthread
error:
/usr/bin/ld: bootstrap.o: relocation R_X86_64_32 against '.rodata' can not be used when making a shared object; recompile with -fPIC
bootstrap.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
without hardened:
/bin/sh ../libtool --tag=CXX --silent --tag=CC --mode=link gcc -O2 -g -pipe -Wall -Werror=for-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -Wformat -Wl,-z,relro -o bootstrap bootstrap.o -lmpeg3 -lopencv_video -lopencv_objdetect -lopencv_legacy -lm -ldl -lpthread
(remove -specs=/usr/lib/rpm/redhat/redhat-hardened-ld is enough)
Succeed