diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-25 23:56:37 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-25 23:56:37 +0000 |
commit | 905b94adb175aacee1aaaed4ef48f99da7447d3e (patch) | |
tree | c8fa004c82ea848628f9b3cabb00df17cbcb3448 | |
parent | 8852947daad111938ba951471566e634e8c2e2c9 (diff) |
Change HOSTCFLAGS to BUILD_CFLAGS proposed by vapier
-rw-r--r-- | Makerules | 4 | ||||
-rw-r--r-- | Rules.mak | 2 | ||||
-rw-r--r-- | extra/config/Makefile.in | 6 | ||||
-rw-r--r-- | extra/locale/Makefile.in | 12 | ||||
-rw-r--r-- | test/Rules.mak | 2 | ||||
-rw-r--r-- | utils/Makefile.in | 10 |
6 files changed, 18 insertions, 18 deletions
@@ -89,8 +89,8 @@ define compile.u $(CC) $^ $(DEPS-$(notdir $@)) -o $@ $(CFLAGS) $(CFLAGS-$(notdir $(^D))) $(CFLAGS-$(notdir $@)) $(STRIPTOOL) $(STRIP_FLAGS) $@ endef -hcompile.u = $(HOSTCC) $^ $(DEPS-$(notdir $@)) -o $@ $(BUILD_LDFLAGS) $(BUILD_LDFLAGS-$(notdir $(^D))) $(BUILD_LDFLAGS-$(notdir $@)) $(HOSTCFLAGS) $(HOSTCFLAGS-$(notdir $(^D))) $(HOSTCFLAGS-$(notdir $@)) -hcompile.o = $(HOSTCC) $^ $(DEPS-$(notdir $@)) -c -o $@ $(HOSTCFLAGS) $(HOSTCFLAGS-$(notdir $(^D))) $(HOSTCFLAGS-$(notdir $@)) +hcompile.u = $(HOSTCC) $^ $(DEPS-$(notdir $@)) -o $@ $(BUILD_LDFLAGS) $(BUILD_LDFLAGS-$(notdir $(^D))) $(BUILD_LDFLAGS-$(notdir $@)) $(BUILD_CFLAGS) $(BUILD_CFLAGS-$(notdir $(^D))) $(BUILD_CFLAGS-$(notdir $@)) +hcompile.o = $(HOSTCC) $^ $(DEPS-$(notdir $@)) -c -o $@ $(BUILD_CFLAGS) $(BUILD_CFLAGS-$(notdir $(^D))) $(BUILD_CFLAGS-$(notdir $@)) compile.c = @$(disp_compile.c) ; $(cmd_compile.c) compile.E = $(cmd_compile.c:-c=-E) @@ -41,7 +41,7 @@ STRIP_FLAGS ?= -x -R .note -R .comment # Select the compiler needed to build binaries for your development system HOSTCC = gcc -HOSTCFLAGS = -O2 -Wall +BUILD_CFLAGS = -O2 -Wall #--------------------------------------------------------- diff --git a/extra/config/Makefile.in b/extra/config/Makefile.in index 280074519..625de7531 100644 --- a/extra/config/Makefile.in +++ b/extra/config/Makefile.in @@ -32,10 +32,10 @@ endif endif endif -HOSTCFLAGS-config := -I. +BUILD_CFLAGS-config := -I. -HOSTCFLAGS-mconf.o := $(HOSTNCURSES) -HOSTCFLAGS-lxdialog := $(HOSTNCURSES) +BUILD_CFLAGS-mconf.o := $(HOSTNCURSES) +BUILD_CFLAGS-lxdialog := $(HOSTNCURSES) BUILD_LDFLAGS-mconf := $(HOSTLIBNCURSES) diff --git a/extra/locale/Makefile.in b/extra/locale/Makefile.in index 7f7b7a92c..0b17ffb1e 100644 --- a/extra/locale/Makefile.in +++ b/extra/locale/Makefile.in @@ -10,16 +10,16 @@ WGET := wget --passive-ftp LOCALE_DATA_FILENAME := uClibc-locale-030818.tgz -HOSTCFLAGS-locale-common := -D__UCLIBC_GEN_LOCALE +BUILD_CFLAGS-locale-common := -D__UCLIBC_GEN_LOCALE -HOSTCFLAGS-gen_wc8bit := $(HOSTCFLAGS-locale-common) -DCTYPE_PACKED=1 +BUILD_CFLAGS-gen_wc8bit := $(BUILD_CFLAGS-locale-common) -DCTYPE_PACKED=1 -HOSTCFLAGS-gen_wctype := $(HOSTCFLAGS-locale-common) +BUILD_CFLAGS-gen_wctype := $(BUILD_CFLAGS-locale-common) -HOSTCFLAGS-gen_ldc := +BUILD_CFLAGS-gen_ldc := ifeq ($(UCLIBC_HAS_WCHAR),y) -HOSTCFLAGS-gen_wc8bit += -DDO_WIDE_CHAR=1 -HOSTCFLAGS-gen_ldc += -D__WCHAR_ENABLED=1 +BUILD_CFLAGS-gen_wc8bit += -DDO_WIDE_CHAR=1 +BUILD_CFLAGS-gen_ldc += -D__WCHAR_ENABLED=1 endif DEPH-locale := $(top_builddir)include/bits/sysnum.h diff --git a/test/Rules.mak b/test/Rules.mak index dfd2d4f61..9d823d0c4 100644 --- a/test/Rules.mak +++ b/test/Rules.mak @@ -61,7 +61,7 @@ endif # Select the compiler needed to build binaries for your development system HOSTCC = gcc -HOSTCFLAGS = -O2 -Wall +BUILD_CFLAGS = -O2 -Wall #-------------------------------------------------------- diff --git a/utils/Makefile.in b/utils/Makefile.in index be5255a4e..f29721bb1 100644 --- a/utils/Makefile.in +++ b/utils/Makefile.in @@ -24,17 +24,17 @@ CFLAGS-iconv := $(CFLAGS-utils-shared) -DL_iconv_main CFLAGS-readelf := $(CFLAGS-utils-shared) -HOSTCFLAGS-utils := -include $(top_srcdir)include/elf.h +BUILD_CFLAGS-utils := -include $(top_srcdir)include/elf.h -HOSTCFLAGS-utils-common := $(CFLAGS-utils-common) +BUILD_CFLAGS-utils-common := $(CFLAGS-utils-common) ifeq ($(LDSO_CACHE_SUPPORT),y) -HOSTCFLAGS-utils-common += -D__LDSO_CACHE_SUPPORT__=1 +BUILD_CFLAGS-utils-common += -D__LDSO_CACHE_SUPPORT__=1 endif -HOSTCFLAGS-ldconfig.host := $(HOSTCFLAGS-utils-common) +BUILD_CFLAGS-ldconfig.host := $(BUILD_CFLAGS-utils-common) -HOSTCFLAGS-ldd.host := $(HOSTCFLAGS-utils-common) -D_GNU_SOURCE +BUILD_CFLAGS-ldd.host := $(BUILD_CFLAGS-utils-common) -D_GNU_SOURCE BUILD_LDFLAGS-utils := -Wl,-s |