$(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)
# Select the compiler needed to build binaries for your development system
HOSTCC = gcc
-HOSTCFLAGS = -O2 -Wall
+BUILD_CFLAGS = -O2 -Wall
#---------------------------------------------------------
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)
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
# Select the compiler needed to build binaries for your development system
HOSTCC = gcc
-HOSTCFLAGS = -O2 -Wall
+BUILD_CFLAGS = -O2 -Wall
#--------------------------------------------------------
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