noux-pkg: enable noux packages for ARMv8
* add -fPIC * disable 'stdbuf' for coreutils * works for bash as well
This commit is contained in:
parent
817ff6ca68
commit
4c14af4d8a
|
@ -81,11 +81,13 @@ endif
|
||||||
|
|
||||||
ifeq ($(findstring arm, $(SPECS)), arm)
|
ifeq ($(findstring arm, $(SPECS)), arm)
|
||||||
CONFIGURE_ARGS += --host arm-none-eabi
|
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)
|
ifeq ($(findstring x86, $(SPECS)), x86)
|
||||||
CONFIGURE_ARGS += --host x86_64-pc-elf
|
CONFIGURE_ARGS += --host x86_64-pc-elf
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
CONFIGURE_ARGS += --srcdir=$(PKG_DIR)
|
CONFIGURE_ARGS += --srcdir=$(PKG_DIR)
|
||||||
CONFIGURE_ARGS += --prefix /
|
CONFIGURE_ARGS += --prefix /
|
||||||
|
@ -109,7 +111,7 @@ LIBTOOLFLAGS = --preserve-dup-deps
|
||||||
LIBGCC = $(shell $(CC) $(CC_MARCH) -print-libgcc-file-name)
|
LIBGCC = $(shell $(CC) $(CC_MARCH) -print-libgcc-file-name)
|
||||||
|
|
||||||
CPPFLAGS += -nostdinc $(INCLUDES)
|
CPPFLAGS += -nostdinc $(INCLUDES)
|
||||||
CPPFLAGS += -D_GNU_SOURCE=1
|
CPPFLAGS += -D_GNU_SOURCE=1 -fPIC
|
||||||
|
|
||||||
# flags to be used in both CFLAGS and CXXFLAGS
|
# flags to be used in both CFLAGS and CXXFLAGS
|
||||||
COMMON_CFLAGS_CXXFLAGS += -ffunction-sections $(CC_OLEVEL) $(CC_MARCH)
|
COMMON_CFLAGS_CXXFLAGS += -ffunction-sections $(CC_OLEVEL) $(CC_MARCH)
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
CONFIGURE_ARGS = --disable-acl --disable-largefile --disable-xattr \
|
CONFIGURE_ARGS = --disable-acl --disable-largefile --disable-xattr \
|
||||||
--disable-libcap --disable-nls
|
--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
|
# Prevent building stdbuf because this involves the linkage of a shared
|
||||||
# libary, which is not supported by Noux, yet.
|
# libary, which is not supported by Noux, yet.
|
||||||
|
|
Loading…
Reference in New Issue