Add base-lib-cflags option
Add option "--base-lib-cflags" to net-snmp-config. This flag returns options needed to link against libnetsnmp. In particular, no perl specific options are provided. It was reported in "libsnmp-base: forcing perl headers in net-snmp-config --cflags breaks perl builds" http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502806 Reviewed-by: Craig Small <csmall@debian.org> Last-Update: 2019-02-07 Gbp-Pq: Name 62_add_lib_cflags.patch
This commit is contained in:
parent
f2b2e9e7fd
commit
be8a1111c0
|
@ -142,6 +142,9 @@ else
|
||||||
--base-cflags)
|
--base-cflags)
|
||||||
echo @CFLAGS@ @CPPFLAGS@ -I${NSC_INCLUDEDIR}
|
echo @CFLAGS@ @CPPFLAGS@ -I${NSC_INCLUDEDIR}
|
||||||
;;
|
;;
|
||||||
|
--base-lib-cflags)
|
||||||
|
echo @LIBCFLAGS@ @CPPFLAGS@ -I${NSC_INCLUDEDIR}
|
||||||
|
;;
|
||||||
--cflags|--cf*)
|
--cflags|--cf*)
|
||||||
echo @CFLAGS@ @DEVFLAGS@ @CPPFLAGS@ -I. -I${NSC_INCLUDEDIR}
|
echo @CFLAGS@ @DEVFLAGS@ @CPPFLAGS@ -I. -I${NSC_INCLUDEDIR}
|
||||||
;;
|
;;
|
||||||
|
@ -704,6 +707,8 @@ if test "x$usage" = "xyes"; then
|
||||||
echo " These options produce the various compilation flags needed when"
|
echo " These options produce the various compilation flags needed when"
|
||||||
echo " building external SNMP applications:"
|
echo " building external SNMP applications:"
|
||||||
echo ""
|
echo ""
|
||||||
|
echo " --base-lib-cflags lists additional compilation flags needed for linking"
|
||||||
|
echo " against libsnmp"
|
||||||
echo " --base-cflags lists additional compilation flags needed"
|
echo " --base-cflags lists additional compilation flags needed"
|
||||||
echo " --cflags lists additional compilation flags needed"
|
echo " --cflags lists additional compilation flags needed"
|
||||||
echo " (includes -I. and extra developer warning flags)"
|
echo " (includes -I. and extra developer warning flags)"
|
||||||
|
|
Loading…
Reference in New Issue