OSDN Git Service

Fix building errors on Android 10 q-x86 r-x86
authorChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 18 Jun 2021 11:06:03 +0000 (19:06 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 18 Jun 2021 11:08:28 +0000 (19:08 +0800)
Allow to use host gcc and related utilities to run configure script
and build host tools.

Android.mk

index 4b146d4..4efab91 100644 (file)
@@ -49,6 +49,7 @@ $(CONFIG_STATUS): $(LOCAL_PATH)/configure
        else \
                ln -sf `realpath --relative-to=$(@D) $$f` $(@D); \
        fi; done;
+       export PATH=/usr/bin:/bin:$$PATH; \
        cd $(@D); ./$(<F) $(CONFIG_OPTS) && $(MAKE) -C include sources && $(MAKE) -C progs tic infocmp && \
        ./$(<F) $(CONFIG_OPTS) --prefix=/system --disable-database --with-fallbacks='linux vt100 xterm' \
                --with-tic-path=$$PWD/progs/tic --with-infocmp-path=$$PWD/progs/infocmp || \
@@ -56,6 +57,7 @@ $(CONFIG_STATUS): $(LOCAL_PATH)/configure
 
 GEN_H := $(intermediates)/include/ncurses.h
 $(GEN_H): $(CONFIG_STATUS)
+       export PATH=/usr/bin:/bin:$$PATH; \
        cd $(@D); $(MAKE) sources; $(MAKE) -C ../ncurses sources
        ln -sf curses.h $@