From 7d17057c0d0b3a8397aeec4b1adf9de520ab2f07 Mon Sep 17 00:00:00 2001 From: John Marino Date: Sun, 19 Oct 2014 09:33:04 +0000 Subject: [PATCH] security/wpa_supplicant: Fix build on FreeBSD 11 On FreeBSD 11, the wpa_supplicant couldn't find the readline headers. It turns out that Mk/Uses/readline.mk only augments LDFLAGS and CPPFLAGS, but wpa_supplicant needs -I${LOCALBASE}/include add to CFLAGS. To fix FreeBSD build, augment CFLAGS with value of CPPFLAGS in the makefile. This wasn't an issue on DragonFly. Apparently wpa_supplicant found the readline compatibility headers of libedit and used those instead. reported by: pkg-fallout --- security/wpa_supplicant/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/security/wpa_supplicant/Makefile b/security/wpa_supplicant/Makefile index 9c5afefed4e6..ffdc0c6c7842 100644 --- a/security/wpa_supplicant/Makefile +++ b/security/wpa_supplicant/Makefile @@ -13,6 +13,7 @@ USES= gmake readline USE_OPENSSL= yes BUILD_WRKSRC= ${WRKSRC}/wpa_supplicant INSTALL_WRKSRC= ${WRKSRC}/src +CFLAGS+= ${CPPFLAGS} # USES=readline only augments CPPFLAGS and LDFLAGS LDFLAGS= -lutil SUB_FILES= pkg-message