noux-pkg: enable noux packages for ARMv8

* add -fPIC
* disable 'stdbuf' for coreutils
* works for bash as well
This commit is contained in:
Sebastian Sumpf 2019-08-21 16:53:59 +02:00 committed by Christian Helmuth
parent 817ff6ca68
commit 4c14af4d8a
2 changed files with 10 additions and 3 deletions

View File

@ -81,11 +81,13 @@ endif
ifeq ($(findstring arm, $(SPECS)), arm)
CONFIGURE_ARGS += --host arm-none-eabi
else
endif
ifeq ($(findstring arm_v8, $(SPECS)), arm_v8)
CONFIGURE_ARGS += --host aarch64-none-elf
endif
ifeq ($(findstring x86, $(SPECS)), x86)
CONFIGURE_ARGS += --host x86_64-pc-elf
endif
endif
CONFIGURE_ARGS += --srcdir=$(PKG_DIR)
CONFIGURE_ARGS += --prefix /
@ -109,7 +111,7 @@ LIBTOOLFLAGS = --preserve-dup-deps
LIBGCC = $(shell $(CC) $(CC_MARCH) -print-libgcc-file-name)
CPPFLAGS += -nostdinc $(INCLUDES)
CPPFLAGS += -D_GNU_SOURCE=1
CPPFLAGS += -D_GNU_SOURCE=1 -fPIC
# flags to be used in both CFLAGS and CXXFLAGS
COMMON_CFLAGS_CXXFLAGS += -ffunction-sections $(CC_OLEVEL) $(CC_MARCH)

View File

@ -1,6 +1,11 @@
CONFIGURE_ARGS = --disable-acl --disable-largefile --disable-xattr \
--disable-libcap --disable-nls
#
# libstdbuf.so does not link on ARMv8
#
CONFIGURE_ARGS += --enable-no-install-program=stdbuf
#
# Prevent building stdbuf because this involves the linkage of a shared
# libary, which is not supported by Noux, yet.