* [Buildroot] [PATCH v2, 1/1] package/netsnmp: fix static build with openssl
@ 2019-04-13 8:57 Fabrice Fontaine
2019-04-13 15:04 ` Arnout Vandecappelle
2019-04-24 20:00 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2019-04-13 8:57 UTC (permalink / raw)
To: buildroot
Use pkg-config to find openssl dependencies such as lz or latomic
Fixes:
- http://autobuild.buildroot.org/results/8f6fdbf8a21967363b737bc771252bcded4278a9
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
Changes v1 -> v2 (after review of Arnout Vandecappelle):
- Drop patch and use pkg-config
package/netsnmp/netsnmp.mk | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/package/netsnmp/netsnmp.mk b/package/netsnmp/netsnmp.mk
index 4bd65ef17a..ed573c51e3 100644
--- a/package/netsnmp/netsnmp.mk
+++ b/package/netsnmp/netsnmp.mk
@@ -53,15 +53,12 @@ endif
# OpenSSL
ifeq ($(BR2_PACKAGE_OPENSSL),y)
-NETSNMP_DEPENDENCIES += openssl
+NETSNMP_DEPENDENCIES += host-pkgconf openssl
NETSNMP_CONF_OPTS += \
--with-openssl=$(STAGING_DIR)/usr/include/openssl \
--with-security-modules="tsm,usm" \
--with-transports="DTLSUDP,TLSTCP"
-ifeq ($(BR2_STATIC_LIBS),y)
-# openssl uses zlib, so we need to explicitly link with it when static
-NETSNMP_CONF_ENV += LIBS=-lz
-endif
+NETSNMP_CONF_ENV += LIBS=`$(PKG_CONFIG_HOST_BINARY) --libs openssl`
else ifeq ($(BR2_PACKAGE_NETSNMP_OPENSSL_INTERNAL),y)
NETSNMP_CONF_OPTS += --with-openssl=internal
else
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2, 1/1] package/netsnmp: fix static build with openssl
2019-04-13 8:57 [Buildroot] [PATCH v2, 1/1] package/netsnmp: fix static build with openssl Fabrice Fontaine
@ 2019-04-13 15:04 ` Arnout Vandecappelle
2019-04-24 20:00 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2019-04-13 15:04 UTC (permalink / raw)
To: buildroot
On 13/04/2019 10:57, Fabrice Fontaine wrote:
> Use pkg-config to find openssl dependencies such as lz or latomic
>
> Fixes:
> - http://autobuild.buildroot.org/results/8f6fdbf8a21967363b737bc771252bcded4278a9
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Applied to master, thanks.
Regards,
Arnout
> ---
> Changes v1 -> v2 (after review of Arnout Vandecappelle):
> - Drop patch and use pkg-config
>
> package/netsnmp/netsnmp.mk | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/package/netsnmp/netsnmp.mk b/package/netsnmp/netsnmp.mk
> index 4bd65ef17a..ed573c51e3 100644
> --- a/package/netsnmp/netsnmp.mk
> +++ b/package/netsnmp/netsnmp.mk
> @@ -53,15 +53,12 @@ endif
>
> # OpenSSL
> ifeq ($(BR2_PACKAGE_OPENSSL),y)
> -NETSNMP_DEPENDENCIES += openssl
> +NETSNMP_DEPENDENCIES += host-pkgconf openssl
> NETSNMP_CONF_OPTS += \
> --with-openssl=$(STAGING_DIR)/usr/include/openssl \
> --with-security-modules="tsm,usm" \
> --with-transports="DTLSUDP,TLSTCP"
> -ifeq ($(BR2_STATIC_LIBS),y)
> -# openssl uses zlib, so we need to explicitly link with it when static
> -NETSNMP_CONF_ENV += LIBS=-lz
> -endif
> +NETSNMP_CONF_ENV += LIBS=`$(PKG_CONFIG_HOST_BINARY) --libs openssl`
> else ifeq ($(BR2_PACKAGE_NETSNMP_OPENSSL_INTERNAL),y)
> NETSNMP_CONF_OPTS += --with-openssl=internal
> else
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2, 1/1] package/netsnmp: fix static build with openssl
2019-04-13 8:57 [Buildroot] [PATCH v2, 1/1] package/netsnmp: fix static build with openssl Fabrice Fontaine
2019-04-13 15:04 ` Arnout Vandecappelle
@ 2019-04-24 20:00 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2019-04-24 20:00 UTC (permalink / raw)
To: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Use pkg-config to find openssl dependencies such as lz or latomic
> Fixes:
> - http://autobuild.buildroot.org/results/8f6fdbf8a21967363b737bc771252bcded4278a9
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> Changes v1 -> v2 (after review of Arnout Vandecappelle):
> - Drop patch and use pkg-config
Committed to 2019.02.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-04-24 20:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-13 8:57 [Buildroot] [PATCH v2, 1/1] package/netsnmp: fix static build with openssl Fabrice Fontaine
2019-04-13 15:04 ` Arnout Vandecappelle
2019-04-24 20:00 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.