Skip to contentSkip to conversation

package/pure-ftpd: fix static build with openssl and latomic

PATCH New Fabrice Fontaine 3 participants 3 messages Apr 12, 2019 – Apr 24, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/pure-ftpd: fix static build with openssl and latomic

Use pkg-config to find openssl dependencies such as lz or latomic

Fixes:
- http://autobuild.buildroot.org/results/eba8d344446b0db6327c0588c456c14594984f76

---
 package/pure-ftpd/pure-ftpd.mk | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
package/pure-ftpd/pure-ftpd.mk +2 -4
index 7012268874..6b85b0c651 100644
@@ -40,10 +40,8 @@ endif
 
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 PURE_FTPD_CONF_OPTS += --with-tls
-PURE_FTPD_DEPENDENCIES += openssl
-ifeq ($(BR2_STATIC_LIBS),y)
-PURE_FTPD_CONF_ENV += LIBS='-lssl -lcrypto -lz'
-endif
+PURE_FTPD_DEPENDENCIES += host-pkgconf openssl
+PURE_FTPD_CONF_ENV += LIBS=`$(PKG_CONFIG_HOST_BINARY) --libs openssl`
 else
 PURE_FTPD_CONF_OPTS += --without-tls
 endif
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/pure-ftpd: fix static build with openssl and latomic

Quoted 6 lines · Fabrice Fontaine

Use pkg-config to find openssl dependencies such as lz or latomic

Fixes:
- http://autobuild.buildroot.org/results/eba8d344446b0db6327c0588c456c14594984f76

Applied to master, thanks.

Regards,
Arnout

Quoted 22 lines
---
 package/pure-ftpd/pure-ftpd.mk | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
package/pure-ftpd/pure-ftpd.mk +2 -4
index 7012268874..6b85b0c651 100644
@@ -40,10 +40,8 @@ endif
 
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 PURE_FTPD_CONF_OPTS += --with-tls
-PURE_FTPD_DEPENDENCIES += openssl
-ifeq ($(BR2_STATIC_LIBS),y)
-PURE_FTPD_CONF_ENV += LIBS='-lssl -lcrypto -lz'
-endif
+PURE_FTPD_DEPENDENCIES += host-pkgconf openssl
+PURE_FTPD_CONF_ENV += LIBS=`$(PKG_CONFIG_HOST_BINARY) --libs openssl`
 else
 PURE_FTPD_CONF_OPTS += --without-tls
 endif
#2 lore raw

PATCH 1/1 package/pure-ftpd: fix static build with openssl and latomic

In reply to Fabrice Fontaine
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

Use pkg-config to find openssl dependencies such as lz or latomic Fixes:
- http://autobuild.buildroot.org/results/eba8d344446b0db6327c0588c456c14594984f76

Committed to 2019.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard