Browse Source

Fixes for armv6

odin
Nathan Fisher 8 months ago
parent
commit
54fa4e49fd
  1. 6
      toolchain/binutils/Makefile
  2. 6
      toolchain/gcc-pass1/Makefile
  3. 11
      world/gcc/Makefile

6
toolchain/binutils/Makefile

@ -9,6 +9,12 @@ config_opts += --target=$(tgt)
config_opts += --disable-nls
config_opts += --disable-werror
ifeq ($(arch), armv6)
config_opts += --with-arch=armv6
config_opts += --with-fpu=vfp
config_opts += --with-float=hard
endif
ifeq ($(arch), x86_64)
install: | $(tooldir)/lib64
else ifeq ($(arch), riscv64)

6
toolchain/gcc-pass1/Makefile

@ -32,6 +32,12 @@ config_opts += --disable-libvtv
config_opts += --disable-libstdcxx
config_opts += --enable-languages=c,c++
ifeq ($(arch), armv6)
config_opts += --with-arch=armv6
config_opts += --with-fpu=vfp
config_opts += --with-float=hard
endif
include targets.mk
$(config_tgt): | $(srcdirs)

11
world/gcc/Makefile

@ -26,10 +26,6 @@ ifeq ($(build_objcxx),1)
objcxx = ,obj-c++
endif
ifeq ($(arch), armv6)
config_opts += --disable-libsanitizer
endif
define pre_configure
[ -d $(srcdir)/gmp ] && rm -rf $(srcdir)/gmp || true
[ -d $(srcdir)/mpc ] && rm -rf $(srcdir)/mpc || true
@ -47,6 +43,13 @@ config_opts += --with-system-zlib
# for musl
#config_opts += --disable-libsanitizer
ifeq ($(arch), armv6)
config_opts += --with-arch=armv6
config_opts += --with-fpu=vfp
config_opts += --with-float=hard
config_opts += --disable-libsanitizer
endif
post_install = ln -sf gcc $(DESTDIR)/usr/bin/cc
include targets.mk
Loading…
Cancel
Save