[PATCH] Fix building dynamic modules

Pavel Roskin proski at gnu.org
Thu Feb 5 20:16:58 EST 2009


Strip directory name from the target in the pattern rule for dynamic
modules.  Remove dynamic modules on "make clean".
---

 src/eap_peer/Makefile   |    2 +-
 wpa_supplicant/Makefile |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/eap_peer/Makefile b/src/eap_peer/Makefile
index 37d649c..2fcda6a 100644
--- a/src/eap_peer/Makefile
+++ b/src/eap_peer/Makefile
@@ -3,4 +3,4 @@ all:
 
 clean:
 	for d in $(SUBDIRS); do make -C $$d clean; done
-	rm -f *~ *.o *.d
+	rm -f *~ *.o *.so *.d
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index 9f7a785..ec9973b 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -1147,7 +1147,7 @@ eap_ikev2.so: ../src/eap_peer/eap_ikev2.c ../src/eap_peer/ikev2.c ../src/eap_com
 
 %.so: %.c
 	$(CC) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $< \
-		-D$(*:eap_%=eap_peer_%)_register=eap_peer_method_dynamic_init
+		-D$(*F:eap_%=eap_peer_%)_register=eap_peer_method_dynamic_init
 
 
 wpa_supplicant.exe: wpa_supplicant


More information about the HostAP mailing list