summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-05-24 14:48:00 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-05-24 14:48:10 +0200
commit48d9282f82c45faf125cc53855263338de050a50 (patch)
tree363858f825b94832ab69ec1fd496848923f5c0b1
parent0f36f2409f4892ebded107b413494b4f8af5e6cc (diff)
cleanup host tools cflags, disable debug symbols and optimization for speedup
-rw-r--r--mk/vars.mk16
-rw-r--r--package/xbmc/Makefile1
2 files changed, 4 insertions, 13 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index 72a50e9ba..0950b7765 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -160,19 +160,11 @@ TARGET_CXXFLAGS+= -marm
endif
endif
-# A nifty macro to make testing gcc features easier (from uClibc project)
-check_gcc=$(shell \
- if $(CC_FOR_BUILD) $(1) -Werror -S -o /dev/null -xc /dev/null > /dev/null 2>&1; \
- then echo "$(1)"; else echo "$(2)"; fi)
-
-CF_FOR_BUILD=$(call check_gcc,-fhonour-copts,)
-
# host compiler flags
-CPPFLAGS_FOR_BUILD?= -I$(STAGING_HOST_DIR)/usr/include
-CFLAGS_FOR_BUILD= -O2 -Wall $(CF_FOR_BUILD)
-CXXFLAGS_FOR_BUILD?= -O2 -Wall
-LDFLAGS_FOR_BUILD?= -L$(STAGING_HOST_DIR)/usr/lib
-FLAGS_FOR_BUILD= ${CPPFLAGS_FOR_BUILD} ${CFLAGS_FOR_BUILD} ${LDFLAGS_FOR_BUILD}
+CPPFLAGS_FOR_BUILD:= -I$(STAGING_HOST_DIR)/usr/include
+CFLAGS_FOR_BUILD:= -O0 -g0
+CXXFLAGS_FOR_BUILD:= -O0 -g0
+LDFLAGS_FOR_BUILD:= -L$(STAGING_HOST_DIR)/usr/lib -Wl,-rpath -Wl,${STAGING_HOST_DIR}/usr/lib
PATCH= PATH=${HOST_PATH} ${BASH} $(SCRIPT_DIR)/patch.sh
PATCHP0= PATH=${HOST_PATH} patch -p0
diff --git a/package/xbmc/Makefile b/package/xbmc/Makefile
index f3482d82a..5b75880d8 100644
--- a/package/xbmc/Makefile
+++ b/package/xbmc/Makefile
@@ -46,7 +46,6 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,XBMC,xbmc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
CXXFLAGS_FOR_BUILD+= $(CPPFLAGS_FOR_BUILD)
-LDFLAGS_FOR_BUILD+= -Wl,-rpath -Wl,${STAGING_HOST_DIR}/usr/lib
XAKE_FLAGS+= V=1 TIXML_USE_STL=1
XAKE_FLAGS+= GCC_HONOUR_COPTS=s
TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/boost-1_55 \