Skip to contentSkip to conversation

mongoose: fix build failure

PATCH New Gustavo Zacarias 2 participants 3 messages Aug 7, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mongoose: fix build failure

mongoose.h looks missing because we're not building locally, so switch to the build dir. Fixes:
http://autobuild.buildroot.net/results/701/701711626548bd166cd5bc5669e4761ffed074d1/

---
 package/mongoose/mongoose.mk | 1 +
 1 file changed, 1 insertion(+)
package/mongoose/mongoose.mk +1 -0
index 4182a30..5f53721 100644
@@ -19,6 +19,7 @@ MONGOOSE_CFLAGS += -DNS_ENABLE_SSL -lssl -lcrypto -lz
 endif
 
 define MONGOOSE_BUILD_CMDS
+	cd $(@D) ; \
 	$(TARGET_CC) $(@D)/examples/server.c $(@D)/mongoose.c \
 		-o $(@D)/examples/server $(MONGOOSE_CFLAGS) -pthread -ldl
 	$(TARGET_CC) -c $(@D)/mongoose.c $(MONGOOSE_CFLAGS) -o $(@D)/mongoose.o
Signature · 1 line
1.8.5.5
#1 lore raw

PATCH 1/1 mongoose: fix build failure

Dear Gustavo Zacarias,

Quoted 14 lines · Gustavo Zacarias

mongoose.h looks missing because we're not building locally, so switch to the build dir. Fixes:
http://autobuild.buildroot.net/results/701/701711626548bd166cd5bc5669e4761ffed074d1/

---
 package/mongoose/mongoose.mk | 1 +
 1 file changed, 1 insertion(+)
package/mongoose/mongoose.mk +0 -0
index 4182a30..5f53721 100644

package/mongoose/mongoose.mk MONGOOSE_CFLAGS += -DNS_ENABLE_SSL -lssl -lcrypto -lz · line 24

Quoted 6 lines
package/mongoose/mongoose.mk +1 -0
@@ -19,6 +19,7 @@ MONGOOSE_CFLAGS += -DNS_ENABLE_SSL -lssl -lcrypto -lz
 endif
 
 define MONGOOSE_BUILD_CMDS
+	cd $(@D) ; \
 	$(TARGET_CC) $(@D)/examples/server.c $(@D)/mongoose.c \
 		-o $(@D)/examples/server $(MONGOOSE_CFLAGS) -pthread -ldl

What about -I$(@D) instead?

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 mongoose: fix build failure

In reply to Gustavo Zacarias

Dear Gustavo Zacarias,

Quoted 8 lines · Gustavo Zacarias

mongoose.h looks missing because we're not building locally, so switch to the build dir. Fixes:
http://autobuild.buildroot.net/results/701/701711626548bd166cd5bc5669e4761ffed074d1/

---
 package/mongoose/mongoose.mk | 1 +
 1 file changed, 1 insertion(+)

Applied after changing the patch to use -I$(@D) instead.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com