Fixes for armv6
This commit is contained in:
parent
3bc654a914
commit
54fa4e49fd
@ -9,6 +9,12 @@ config_opts += --target=$(tgt)
|
|||||||
config_opts += --disable-nls
|
config_opts += --disable-nls
|
||||||
config_opts += --disable-werror
|
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)
|
ifeq ($(arch), x86_64)
|
||||||
install: | $(tooldir)/lib64
|
install: | $(tooldir)/lib64
|
||||||
else ifeq ($(arch), riscv64)
|
else ifeq ($(arch), riscv64)
|
||||||
|
@ -32,6 +32,12 @@ config_opts += --disable-libvtv
|
|||||||
config_opts += --disable-libstdcxx
|
config_opts += --disable-libstdcxx
|
||||||
config_opts += --enable-languages=c,c++
|
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
|
include targets.mk
|
||||||
|
|
||||||
$(config_tgt): | $(srcdirs)
|
$(config_tgt): | $(srcdirs)
|
||||||
|
@ -26,10 +26,6 @@ ifeq ($(build_objcxx),1)
|
|||||||
objcxx = ,obj-c++
|
objcxx = ,obj-c++
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(arch), armv6)
|
|
||||||
config_opts += --disable-libsanitizer
|
|
||||||
endif
|
|
||||||
|
|
||||||
define pre_configure
|
define pre_configure
|
||||||
[ -d $(srcdir)/gmp ] && rm -rf $(srcdir)/gmp || true
|
[ -d $(srcdir)/gmp ] && rm -rf $(srcdir)/gmp || true
|
||||||
[ -d $(srcdir)/mpc ] && rm -rf $(srcdir)/mpc || true
|
[ -d $(srcdir)/mpc ] && rm -rf $(srcdir)/mpc || true
|
||||||
@ -47,6 +43,13 @@ config_opts += --with-system-zlib
|
|||||||
# for musl
|
# for musl
|
||||||
#config_opts += --disable-libsanitizer
|
#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
|
post_install = ln -sf gcc $(DESTDIR)/usr/bin/cc
|
||||||
|
|
||||||
include targets.mk
|
include targets.mk
|
||||||
|
Loading…
Reference in New Issue
Block a user