From 973b75d52b93bfa2d201042dd009f1b9bcf97c1a Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 5 Sep 2014 07:51:40 +0200 Subject: use UCLIBC_EXTRA_CFLAGS otherwise CPU_FLAGS are overwritten. breaks f.e. arc toolchain build --- toolchain/uclibc-ng/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'toolchain/uclibc-ng/Makefile') diff --git a/toolchain/uclibc-ng/Makefile b/toolchain/uclibc-ng/Makefile index f1cb89456..99fb1d83b 100644 --- a/toolchain/uclibc-ng/Makefile +++ b/toolchain/uclibc-ng/Makefile @@ -95,7 +95,7 @@ endif DEVEL_PREFIX=/usr/ \ RUNTIME_PREFIX=$(STAGING_TARGET_DIR) \ HOSTCC="$(HOST_CC)" \ - CPU_CFLAGS="$(TARGET_CFLAGS)" \ + UCLIBC_EXTRA_CFLAGS="$(TARGET_CFLAGS)" \ V=1 \ oldconfig PATH='$(HOST_PATH)' $(MAKE) ${UCLIBC_MAKEOPTS} -C $(WRKBUILD) \ @@ -103,7 +103,7 @@ endif DEVEL_PREFIX=/usr/ \ RUNTIME_PREFIX=$(STAGING_TARGET_DIR) \ HOSTCC="$(HOST_CC)" \ - CPU_CFLAGS="$(TARGET_CFLAGS)" \ + UCLIBC_EXTRA_CFLAGS="$(TARGET_CFLAGS)" \ V=1 \ install_headers touch $(WRKBUILD)/.configured @@ -115,7 +115,7 @@ $(WRKBUILD)/.compiled: DEVEL_PREFIX=/ \ RUNTIME_PREFIX=/ \ HOSTCC="$(HOST_CC)" \ - CPU_CFLAGS="$(TARGET_CFLAGS)" \ + UCLIBC_EXTRA_CFLAGS="$(TARGET_CFLAGS)" \ all touch $@ @@ -125,7 +125,7 @@ $(WRKBUILD)/.install_headers: $(WRKBUILD)/.compiled DEVEL_PREFIX=/usr/ \ DEVEL_PREFIX_LIB=/ \ RUNTIME_PREFIX=/ \ - CPU_CFLAGS="$(TARGET_CFLAGS)" \ + UCLIBC_EXTRA_CFLAGS="$(TARGET_CFLAGS)" \ install_dev touch $@ @@ -135,7 +135,7 @@ $(WRKBUILD)/.installed: $(WRKBUILD)/.install_headers DEVEL_PREFIX=/usr/ \ DEVEL_PREFIX_LIB=/ \ RUNTIME_PREFIX=/ \ - CPU_CFLAGS="$(TARGET_CFLAGS)" \ + UCLIBC_EXTRA_CFLAGS="$(TARGET_CFLAGS)" \ install_runtime touch $@ @@ -144,7 +144,7 @@ ifeq ($(ADK_UCLIBC_TEST),y) PATH='$(HOST_PATH)' $(MAKE) -C $(WRKBUILD) \ TEST_INSTALLED_UCLIBC=1 \ UCLIBC_ONLY=1 \ - CPU_CFLAGS="$(TARGET_CFLAGS)" \ + UCLIBC_EXTRA_CFLAGS="$(TARGET_CFLAGS)" \ test_compile endif ifeq ($(ADK_TARGET_TOOLCHAIN),y) -- cgit v1.2.3