From a0cffa9aeaaa0d847e96caf8e4f2ea5ab3cff057 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 21 Jan 2020 13:51:52 +0000 Subject: Small incremental build fixes (12) --- make | 8 +++++++- sub/kernel/Makefile.ncurses | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/make b/make index f69d033..94f7d5e 100755 --- a/make +++ b/make @@ -16,7 +16,13 @@ fi WD=$(pwd) -BUILD_BUILD_CC=${BUILD_BUILD_CC:-gcc} +if test -z "$BUILD_BUILD_CC" ; then + if test -n "${BUILD_TRIPLE}${BUILD_BASE}" ; then + BUILD_BUILD_CC="${BUILD_BASE}/${BUILD_TRIPLE}-gcc" + else + BUILD_BUILD_CC=${BUILD_BUILD_CC:-gcc} + fi +fi OUTPUT=${OUTPUT:-$WD/output} BUILD_HOST_CC="$TRIPLE-${CROSS_CC:-gcc}" diff --git a/sub/kernel/Makefile.ncurses b/sub/kernel/Makefile.ncurses index d57822a..992dff5 100644 --- a/sub/kernel/Makefile.ncurses +++ b/sub/kernel/Makefile.ncurses @@ -5,7 +5,7 @@ NCURSES_URLDIR := https://invisible-mirror.net/archives/$(NCURSES_NAME)/current NCURSES_TAREXT := tgz NCURSES_TARLETTER := z -NCURSES_CONFIGURE_OPTIONS := --without-ada --without-cxx-binding --without-manpages --without-progs --without-tack --without-tests --without-curses-h --disable-pc-files --without-shared --without-debug --without-profile --enable-rpath --disable-home-terminfo --enable-widec --with-pthread --enable-weak-symbols --without-develop --enable-reentrant --enable-symlinks --with-build-cc=$(BUILD_BUILD_CC) --with-build-ldflags="-s -static" +NCURSES_CONFIGURE_OPTIONS := --without-ada --without-cxx-binding --without-manpages --without-progs --without-tack --without-tests --without-curses-h --disable-pc-files --without-shared --without-debug --without-profile --enable-rpath --disable-home-terminfo --enable-widec --with-pthread --enable-weak-symbols --without-develop --enable-reentrant --enable-symlinks --with-build-cc="$(BUILD_BUILD_CC)" --with-build-ldflags="-s -static" NCURSES_CFLAGS := "" NCURSES_LDFLAGS := "" @@ -25,7 +25,7 @@ $(OUTPUT)/build-build/.lh_$(NCURSES_NAME)_copied: $(OUTPUT)/sources/.lh_$(NCURSE exec setuidgid $(NORMALUSER) s6-touch $@ $(OUTPUT)/build-build/.lh_$(NCURSES_NAME)_configured: $(OUTPUT)/build-build/.lh_$(NCURSES_NAME)_copied | $(OUTPUT)/build-build/.lh_skarnet_installed - exec setuidgid $(NORMALUSER) cd $(OUTPUT)/build-build/opt/$(NCURSES_NAME)-$(NCURSES_VERSION)/src export CC "$(BUILD_BUILD_CC)" export CFLAGS $(NCURSES_CFLAGS) export LDFLAGS $(NCURSES_LDFLAGS) ./configure --prefix=$(OUTPUT)/build-build/opt/$(NCURSES_NAME)-$(NCURSES_VERSION) $(NCURSES_CONFIGURE_OPTIONS) + exec setuidgid $(NORMALUSER) cd $(OUTPUT)/build-build/opt/$(NCURSES_NAME)-$(NCURSES_VERSION)/src export CC "$(BUILD_BUILD_CC)" ./configure --prefix=$(OUTPUT)/build-build/opt/$(NCURSES_NAME)-$(NCURSES_VERSION) $(NCURSES_CONFIGURE_OPTIONS) exec setuidgid $(NORMALUSER) s6-touch $@ $(OUTPUT)/build-build/.lh_$(NCURSES_NAME)_built: $(OUTPUT)/build-build/.lh_$(NCURSES_NAME)_configured | $(OUTPUT)/build-build/.lh_skarnet_installed -- cgit v1.2.3