[PATCH] Use LDFLAGS when linking hostapd terminal object

Philip A. Prindeville philipp_subx
Tue Feb 2 14:20:29 PST 2010


LDFLAGS (which are frequently essential to cross-compilation) aren't
being used when doing hostapd's terminal link.

--- hostapd-0.6.10/hostapd/Makefile.orig	2010-01-12 06:55:02.000000000 -0800
+++ hostapd-0.6.10/hostapd/Makefile	2010-01-31 21:09:47.000000000 -0800
@@ -580,7 +580,7 @@ install: all
 	for i in $(ALL); do cp $$i /usr/local/bin/$$i; done
  hostapd: $(OBJS)
-	$(CC) -o hostapd $(OBJS) $(LIBS)
+	$(CC) -o hostapd $(OBJS) $(LDFLAGS) $(LIBS)
  OBJS_c = hostapd_cli.o ../src/common/wpa_ctrl.o ../src/utils/os_$(CONFIG_OS).o
 hostapd_cli: $(OBJS_c)





More information about the Hostap mailing list