diff --git a/repos/ports/mk/gnu_build.mk b/repos/ports/mk/gnu_build.mk index 6d5fedd05..035c57b78 100644 --- a/repos/ports/mk/gnu_build.mk +++ b/repos/ports/mk/gnu_build.mk @@ -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) diff --git a/repos/ports/src/noux-pkg/coreutils/target.inc b/repos/ports/src/noux-pkg/coreutils/target.inc index bc84bc60e..dce0c5e13 100644 --- a/repos/ports/src/noux-pkg/coreutils/target.inc +++ b/repos/ports/src/noux-pkg/coreutils/target.inc @@ -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.