httping: don't override optimization level, correctly disable debug support
authorPeter Korsgaard <jacmet@sunsite.dk>
Sun, 20 Jan 2013 20:12:11 +0000 (21:12 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 20 Jan 2013 20:17:49 +0000 (21:17 +0100)
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>
package/httping/httping.mk

index 45478cfdc345b89af4003e130489d198d4d40df0..e92be619af2d1204467bc1d7b802599127d2d582 100644 (file)
@@ -12,11 +12,10 @@ 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) \
-       DEBUG=no
+       TFO=$(if $(BR2_PACKAGE_HTTPING_TFO),yes,no)
 
 define HTTPING_BUILD_CMDS
-       $(HTTPING_MAKE_OPT) $(MAKE) -C $(@D)
+       $(HTTPING_MAKE_OPT) $(MAKE) OFLAGS= DEBUG=no -C $(@D)
 endef
 
 define HTTPING_INSTALL_TARGET_CMDS