hostapd: P2P: Fix a corner case in peer addition based on PD Request
[openwrt/openwrt.git] / package / libs / wolfssl / patches / 110-Fix-linking-against-hostapd-with-LTO.patch
1 From 391ecbd647c121300dc7dcf209e412ccb7b8d432 Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Fri, 1 Jan 2021 21:57:56 +0100
4 Subject: [PATCH] Fix linking against hostapd with LTO
5
6 When running LTO on wolfssl the ecc_map() function is removed from the
7 binary by GCC 8.4.0. This function is used by multiple functions from
8 the crypto_wolfssl.c implementation of hostapd master.
9
10 Fixes: 780e8a4619b6 ("Fixes for building `--enable-wpas=small` with WPA Supplicant v2.7.")
11 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
12 ---
13 configure.ac | 1 +
14 1 file changed, 1 insertion(+)
15
16 --- a/configure.ac
17 +++ b/configure.ac
18 @@ -947,6 +947,7 @@ then
19 AM_CFLAGS="$AM_CFLAGS -DOPENSSL_EXTRA_X509_SMALL"
20
21 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_PUBLIC_MP"
22 + AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_PUBLIC_ECC_ADD_DBL"
23 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DER_LOAD"
24 AM_CFLAGS="$AM_CFLAGS -DATOMIC_USER"
25 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_KEY_GEN"