Skip to contentSkip to conversation

miniupnpd: Build config.h before full build

PATCH New Martin Jansa 1 participant 1 message Aug 27, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 miniupnpd: Build config.h before full build

From: Khem Raj <[email protected]>

This fixes a race condition e.g.

testminissdp.c:15:10: fatal error: config.h: No such file or directory
15 | #include "config.h"

      |          ^~~~~~~~~~

compilation terminated.
<builtin>: recipe for target 'testminissdp.o' failed

---
 .../recipes-connectivity/miniupnpd/miniupnpd_2.1.20190630.bb     | 1 +
 1 file changed, 1 insertion(+)
meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.1.20190630.bb +1 -0
index 6b8fdca4c3..e029266541 100644
@@ -26,6 +26,7 @@ do_configure_prepend() {
 
 do_compile() {
     cd ${S}
+    CONFIG_OPTIONS="${IPV6} --leasefile --vendorcfg" oe_runmake -f Makefile.linux config.h
     CONFIG_OPTIONS="${IPV6} --leasefile --vendorcfg" oe_runmake -f Makefile.linux
 }
 
Signature · 1 line
2.25.1