diff --git a/net/softethervpn/Makefile b/net/softethervpn/Makefile index c896e0929..157797c4f 100644 --- a/net/softethervpn/Makefile +++ b/net/softethervpn/Makefile @@ -58,7 +58,8 @@ define Host/Compile # Build hamcorebuilder using host compiler and let it generate # the hamcore.se2 archive file - CC="$(HOSTCC)" $(MAKE) $(HOST_MAKE_FLAGS) \ + # CFLAGS, CPPFLAGS & LDFLAGS need to be passed with CC because they are being ingored + CC="$(HOSTCC) $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(HOST_LDFLAGS)" $(MAKE) $(HOST_MAKE_FLAGS) \ src/bin/BuiltHamcoreFiles/unix/hamcore.se2 endef