inhibit javascipt for native builds on architectures where it miscompiles

This commit is contained in:
Vincent Sanders 2016-11-24 23:43:44 +00:00
parent af1f1f375d
commit f8f802cda5

View File

@ -44,7 +44,6 @@ HOST := $(shell uname -s)
# TODO: Ideally, we want the equivalent of s/[^A-Za-z0-9]/_/g here
HOST := $(subst .,_,$(subst -,_,$(subst /,_,$(HOST))))
ifeq ($(HOST),)
HOST := riscos
$(warning Build platform determination failed but that's a known problem for RISC OS so we're assuming a native RISC OS build.)
@ -300,6 +299,20 @@ else
endif
else
# All native targets
# The machine architecture
# Possibles: i386 i686 x86_64 ia64 alpha amd64 arm
# armeb armel hppa m32r m68k mips mipsel powerpc ppc64
# s390 s390x sh3 sh3eb sh4 sh4eb sparc
HOST_ARCH := $(shell uname -m)
# disable duktape use on architectures where it miscompiles
NO_DUKTAPE_ARCH := s390 s390x ppc64
ifeq ($(filter-out $(NO_DUKTAPE_ARCH),$(HOST_ARCH)),)
override NETSURF_USE_DUKTAPE := NO
endif
# use native package config
PKG_CONFIG := pkg-config
# gtk target processing