I am attempting to install Cosign on CentOS 6.3 64-bit to work with my employer’s central login system.
Their documentation states that I need to set an LDFLAGS directive of:
LDFLAGS="-R/usr -L/usr"
Where /usr is the /PATH/TO/SSL/lib – openSSL is installed and this is the correct path.
However when I then try to ./configure the installation, GCC is throwing an error which I can’t work out.
configure:2335: checking for suffix of executables
configure:2342: gcc -o conftest -pthread -R/usr -L/usr conftest.c >&5
gcc: unrecognized option '-R/usr'
I can’t find -R as an option in the gcc docs, which has me confused. I’m using gcc version 4.4.6 20120305 (Red Hat 4.4.6-4).
I am not used to seeing options without a space before their argument, but in this case adding a space to make it ‘-R /usr’ just throws the same error.
Earlier in the config.log, I also have this error:
configure:2182: gcc -V >&5
gcc: '-V' option must have argument
Can anyone shed any light?
LDFLAGS should not be fed to gcc “as is”, strange as they are like in your output. Probably some bug in the build script.
Try
This should compensate the current error by wrapping the flags in the form that gcc expects.