Red Hat Bugzilla – Bug 231805
cflags with -lcrypto is not correct in spec file, should be in ldflags
Last modified: 2007-11-30 17:11:58 EST
Description of problem:
In the net-snmp.spec file, there is %configure --with-cflags="$RPM_OPT_FLAGS
-lcrypto". Having -lcrypto be part of cflags puts -lcrypto on the output of
"net-snmp-config --base-cflags", which causes an annoying little compile warning
while developing and compiling a snmp subagent.
The "-lcrypto" should be in the next line of the .spec file, in "--with-ldflags"
-l is a linker option, not a compiler option.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Package rebuilt with correct flags.