buildrootschalter/package/httping/httping.mk
Peter Korsgaard d9cbc45b92 httping: don't override optimization level, correctly disable debug support
The httping makefile by default appends -O3 to CFLAGS, overriding the
optimization flags set in Buildroot, so pass OFLAGS= to disable this.

The DEBUG=no argument has to be passed on the make cmdline and not in the
environment to take effect, as it is unconditionally set in the Makefile.
Notice that it shouldn't be passed to 'make install', as that otherwise
will try to run the host strip program.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-01-20 21:17:49 +01:00

30 lines
803 B
Makefile

#############################################################
#
# httping
#
#############################################################
HTTPING_VERSION = 1.5.7
HTTPING_SOURCE = httping-$(HTTPING_VERSION).tgz
HTTPING_SITE = http://www.vanheusden.com/httping
HTTPING_LICENSE = GPLv2
HTTPING_LICENSE_FILES = license.txt
HTTPING_DEPENDENCIES = $(if $(BR2_PACKAGE_OPENSSL),openssl)
HTTPING_MAKE_OPT = $(TARGET_CONFIGURE_OPTS) \
SSL=$(if $(BR2_PACKAGE_OPENSSL),yes,no) \
TFO=$(if $(BR2_PACKAGE_HTTPING_TFO),yes,no)
define HTTPING_BUILD_CMDS
$(HTTPING_MAKE_OPT) $(MAKE) OFLAGS= DEBUG=no -C $(@D)
endef
define HTTPING_INSTALL_TARGET_CMDS
$(HTTPING_MAKE_OPT) $(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install
endef
define HTTPING_CLEAN_CMDS
$(MAKE) -C $(@D) clean
endef
$(eval $(generic-package))