git: b4e224360e92 - stable/13 - wpa: Fix gcc build

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Tue, 01 Oct 2024 04:30:20 UTC
The branch stable/13 has been updated by cy:

URL: https://cgit.FreeBSD.org/src/commit/?id=b4e224360e92f8ddd63360c0017273ccdac6324b

commit b4e224360e92f8ddd63360c0017273ccdac6324b
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2024-07-24 15:04:33 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2024-10-01 04:29:48 +0000

    wpa: Fix gcc build
    
    Order of libraries still matters with GCC toolchains. Moving the
    wpapasn library before the wpacommon specification resolves the link
    problem.
    
    This issue was not detected by make universe.
    
    Fixes:          a90b9d015907
    
    (cherry picked from commit 8880825df1f805fc02dbb8476df8183d4ec3781c)
---
 usr.sbin/wpa/wpa_supplicant/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/wpa/wpa_supplicant/Makefile b/usr.sbin/wpa/wpa_supplicant/Makefile
index a107157fbf73..3cb1d1c18689 100644
--- a/usr.sbin/wpa/wpa_supplicant/Makefile
+++ b/usr.sbin/wpa/wpa_supplicant/Makefile
@@ -52,7 +52,7 @@ CFLAGS+=-DCONFIG_BACKEND_FILE
 LIBADD+=pcap util wpadrivers wpaeapol_supp \
 	wpaeap_server \
 	wpaeap_peer wpaeap_common wpal2_packet wparsn_supp wpatls wpawps \
-	wpacommon wpacrypto wpautils wpapasn
+	wpapasn wpacommon wpacrypto wpautils
 
 # User customizations to the wpa_supplicant build environment
 CFLAGS+=${WPA_SUPPLICANT_CFLAGS}