From 2a6992885d188991e44bd2106cda0a3ef1c41cc8 Mon Sep 17 00:00:00 2001 From: jow Date: Sun, 5 Feb 2012 20:25:38 +0000 Subject: [PATCH] [packages] httping: fix flags for nossl variant, define _GNU_SOURCE to get access to protected useconds_t (#10904) git-svn-id: svn://svn.openwrt.org/openwrt/packages@30319 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/httping/Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/net/httping/Makefile b/net/httping/Makefile index a2c611819..cb188642b 100644 --- a/net/httping/Makefile +++ b/net/httping/Makefile @@ -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