[Buildroot] [git commit] mongoose: fix build failure

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Aug 7 20:11:58 UTC 2014

commit: http://git.buildroot.net/buildroot/commit/?id=595300f892b4bd3fdf26ea744fe9ac8b70d938db
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

mongoose.h looks missing because we're not building locally, so add
the appropriate -I flag. Fixes:

[Thomas: change the solution to use -I$(@D) instead of switching to
the build directory.]

Signed-off-by: Gustavo Zacarias <gustavo at zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
 package/mongoose/mongoose.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/package/mongoose/mongoose.mk b/package/mongoose/mongoose.mk
index 4182a30..e0104b4 100644
--- a/package/mongoose/mongoose.mk
+++ b/package/mongoose/mongoose.mk
@@ -19,7 +19,7 @@ MONGOOSE_CFLAGS += -DNS_ENABLE_SSL -lssl -lcrypto -lz
-	$(TARGET_CC) $(@D)/examples/server.c $(@D)/mongoose.c \
+	$(TARGET_CC) $(@D)/examples/server.c $(@D)/mongoose.c -I$(@D) \
 		-o $(@D)/examples/server $(MONGOOSE_CFLAGS) -pthread -ldl
 	$(TARGET_CC) -c $(@D)/mongoose.c $(MONGOOSE_CFLAGS) -o $(@D)/mongoose.o
 	$(TARGET_AR) rcs $(@D)/libmongoose.a $(@D)/mongoose.o

More information about the buildroot mailing list