Browse Source

sslh: Also pass down TARGET_CPPFLAGS

Make sure we do pass TARGET_CPPFLAGS using CPPFLAGS (which is supported
by sslh's Makefile), fixing build issues with some external toolchains:

mipsel-linux-gnu-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc
-fno-caller-saves -Wno-unused-result  -D_FORTIFY_SOURCE=1 -Wl,-z,now
-Wl,-z,relro -DENABLE_REGEX -DLIBCONFIG -c sslh-main.c
sslh-main.c:26:23: fatal error: libconfig.h: No such file or directory
 #include <libconfig.h>
                       ^
compilation terminated.
Makefile:63: recipe for target 'sslh-main.o' failed
make[4]: *** [sslh-main.o] Error 1

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
lilik-openwrt-22.03
Florian Fainelli 8 years ago
parent
commit
37e8aa3639
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      net/sslh/Makefile

+ 1
- 0
net/sslh/Makefile View File

@ -38,6 +38,7 @@ define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
CC="$(TARGET_CC)" \ CC="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS)" \ CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="$(TARGET_CPPFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \
ENABLE_REGEX=1 \ ENABLE_REGEX=1 \
USELIBCONFIG=1 \ USELIBCONFIG=1 \


Loading…
Cancel
Save