All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] hostapd: fix build
@ 2011-07-04  6:00 Baruch Siach
  2011-07-04  6:00 ` [Buildroot] [PATCH 2/2] iw: " Baruch Siach
  2011-07-04  6:56 ` [Buildroot] [PATCH 1/2] hostapd: " Thomas Petazzoni
  0 siblings, 2 replies; 7+ messages in thread
From: Baruch Siach @ 2011-07-04  6:00 UTC (permalink / raw)
  To: buildroot

The --sysroot option is required in CFLAGS and LDFLAGS to avoid compile time
and link time failures.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 package/hostapd/hostapd.mk |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/hostapd/hostapd.mk b/package/hostapd/hostapd.mk
index f097e75..8ca091d 100644
--- a/package/hostapd/hostapd.mk
+++ b/package/hostapd/hostapd.mk
@@ -71,8 +71,8 @@ endif
 define HOSTAPD_CONFIGURE_CMDS
 	cp $(@D)/$(HOSTAPD_SUBDIR)/defconfig $(HOSTAPD_CONFIG)
 	$(SED) "s/\/local//" $(@D)/$(HOSTAPD_SUBDIR)/Makefile
-	echo "CFLAGS += $(TARGET_CFLAGS)" >>$(HOSTAPD_CONFIG)
-	echo "LDFLAGS += $(TARGET_LDFLAGS)" >>$(HOSTAPD_CONFIG)
+	echo "CFLAGS += $(TARGET_CFLAGS) --sysroot=$(STAGING_DIR)" >>$(HOSTAPD_CONFIG)
+	echo "LDFLAGS += $(TARGET_LDFLAGS) --sysroot=$(STAGING_DIR)" >>$(HOSTAPD_CONFIG)
 	echo "CC = $(TARGET_CC)" >>$(HOSTAPD_CONFIG)
 # Drivers
 	$(SED) "s/^#CONFIG_DRIVER_WIRED/CONFIG_DRIVER_WIRED/" $(HOSTAPD_CONFIG)
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-07-05 14:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-04  6:00 [Buildroot] [PATCH 1/2] hostapd: fix build Baruch Siach
2011-07-04  6:00 ` [Buildroot] [PATCH 2/2] iw: " Baruch Siach
2011-07-04  6:56 ` [Buildroot] [PATCH 1/2] hostapd: " Thomas Petazzoni
2011-07-04  7:39   ` Baruch Siach
2011-07-04 14:14   ` Matias Garcia
2011-07-05 14:08     ` Baruch Siach
2011-07-05 14:39       ` Matias Garcia

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.