libgit2-glib rawhide build fails to detect ssh support
Submitted by Kalev Lember
Link to original bug (#747874)
Description
configure:13654: checking for libgit2 ssh support configure:13681: gcc -o conftest -pthread -I/usr/include/gobject-introspection-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld conftest.c -lgio-2.0 -lgit2 -lgirepository-1.0 -lgobject-2.0 -lglib-2.0 >&5 /usr/bin/ld: /tmp/cc9j045A.o: relocation R_X86_64_PC32 against undefined symbol `git_libgit2_init' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status
This seems to be caused by the fact that the linker is invoked with -specs=/usr/lib/rpm/redhat/redhat-hardened-ld from LDFLAGS, but the compilation is done without matching -specs line that's supposed to come from CFLAGS.
Version: git master
Resolution: RESOLVED FIXED