From be8a1111c0f0843404fdd6f0803bd763d2a3b631 Mon Sep 17 00:00:00 2001 From: Net-SNMP Packaging Team Date: Mon, 27 Jun 2022 15:01:26 +0800 Subject: [PATCH] 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 Last-Update: 2019-02-07 Gbp-Pq: Name 62_add_lib_cflags.patch --- net-snmp-config.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/net-snmp-config.in b/net-snmp-config.in index a412412..0b8266a 100644 --- a/net-snmp-config.in +++ b/net-snmp-config.in @@ -142,6 +142,9 @@ else --base-cflags) echo @CFLAGS@ @CPPFLAGS@ -I${NSC_INCLUDEDIR} ;; + --base-lib-cflags) + echo @LIBCFLAGS@ @CPPFLAGS@ -I${NSC_INCLUDEDIR} + ;; --cflags|--cf*) 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 " building external SNMP applications:" echo "" + echo " --base-lib-cflags lists additional compilation flags needed for linking" + echo " against libsnmp" echo " --base-cflags lists additional compilation flags needed" echo " --cflags lists additional compilation flags needed" echo " (includes -I. and extra developer warning flags)"