httping: fix flags for nossl variant, define _GNU_SOURCE to get access to protected...
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 5 Feb 2012 20:25:38 +0000 (20:25 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 5 Feb 2012 20:25:38 +0000 (20:25 +0000)
SVN-Revision: 30319

net/httping/Makefile

index a2c611819651fcfd12f12a07afa2ac8b1f544dac..cb188642b6d9c936b602179ef89130c69604a62b 100644 (file)
@@ -56,13 +56,11 @@ define Package/httping-nossl/description
        This package is built without SSL support.
 endef
 
-MAKE_FLAGS += \
-       CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)"
+TARGET_CFLAGS += -D_GNU_SOURCE
 
 ifeq ($(BUILD_VARIANT),nossl)
-       MAKE_FLAGS += \
-               SSL="no" \
-               CFLAGS+="-DNO_SSL"
+       MAKE_FLAGS += SSL="no"
+       TARGET_CFLAGS += -DNO_SSL
 endif
 
 define Package/httping/install