ports/security/wpa_supplicant/files/patch-Makefile
Brooks Davis 2ebcb8acaa Add a new variable WITH_STATIC_SUPPLICANT to cause wpa_supplicant to be
linked staticly.  This allows it to be used from devd at startup. [1]

Use LIB_DEPENDS instead of BUILD_DEPENDS for the libdnet depend since we
need it to run too. [2]

My changes differ from the submitted fixes.

Submitted by:	Darren Pilgrim <dmp at bitfreak dot org> [1]
		Pawel Worach <pawel dot worach at gmail dot com> [2]
2005-05-27 01:10:30 +00:00

14 lines
330 B
Text

$FreeBSD$
--- Makefile.orig
+++ Makefile
@@ -303,7 +303,7 @@
OBJS += wpa_supplicant.o wpa.o l2_packet.o drivers.o
wpa_supplicant: .config $(OBJS)
- $(CC) -o wpa_supplicant $(OBJS) $(LIBS)
+ $(CC) ${SUPPLICANT_STATIC} -o wpa_supplicant $(OBJS) $(LIBS)
eapol_test: .config $(OBJS_t)
$(CC) -o eapol_test $(OBJS_t) $(LIBS)