mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 16:01:54 -09:00
package/hostapd: fix static build with openssl and atomic
Use pkg-config to find openssl dependencies such as lz or latomic
Fix build on sparc v8 (even if there is no autobuilder failures yet)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
(cherry picked from commit d1455b91f8)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
88019952d5
commit
440c933d3c
@@ -35,8 +35,8 @@ HOSTAPD_CONFIG_DISABLE =
|
||||
|
||||
# Try to use openssl if it's already available
|
||||
ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
|
||||
HOSTAPD_DEPENDENCIES += libopenssl
|
||||
HOSTAPD_LIBS += $(if $(BR2_STATIC_LIBS),-lcrypto -lz)
|
||||
HOSTAPD_DEPENDENCIES += host-pkgconf libopenssl
|
||||
HOSTAPD_LIBS += `$(PKG_CONFIG_HOST_BINARY) --libs openssl`
|
||||
HOSTAPD_CONFIG_EDITS += 's/\#\(CONFIG_TLS=openssl\)/\1/'
|
||||
else
|
||||
HOSTAPD_CONFIG_DISABLE += CONFIG_EAP_PWD
|
||||
|
||||
Reference in New Issue
Block a user