From fce78c05d2b89e39cbed6550f41cfcb953a79b76 Mon Sep 17 00:00:00 2001 From: jperkin Date: Sun, 24 Jan 2016 16:14:44 +0000 Subject: Attempt to bring sanity to how ABI and MACHINE_ARCH are set. Previously there were at least 5 different ways MACHINE_ARCH could be set, some statically and some at run time, and in many cases these settings differed, leading to issues at pkg_add time where there was conflict between the setting encoded into the package and that used by pkg_install. Instead, move to a single source of truth where the correct value based on the host and the chosen (or default) ABI is determined in the bootstrap script. The value can still be overridden in mk.conf if necessary, e.g. for cross-compiling. ABI is now set by default and if unset a default is calculated based on MACHINE_ARCH. This fixes some OS, e.g. Linux, where the wrong default was previously chosen. As a result of the refactoring there is no need for LOWER_ARCH, with references to it replaced by MACHINE_ARCH. SPARC_TARGET_ARCH is also removed. --- graphics/evas/Makefile.common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'graphics/evas') diff --git a/graphics/evas/Makefile.common b/graphics/evas/Makefile.common index 40bf4f0d100..f3885ce48d5 100644 --- a/graphics/evas/Makefile.common +++ b/graphics/evas/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.14 2015/03/17 21:30:27 joerg Exp $ +# $NetBSD: Makefile.common,v 1.15 2016/01/24 16:14:44 jperkin Exp $ # used by graphics/evas-buffer/Makefile # used by graphics/evas-edb/Makefile @@ -58,7 +58,7 @@ CONFIGURE_ARGS+= --enable-cpu-altivec .endif # currently it is like it is -MODULE_ARCH= ${LOWER_OPSYS}-${LOWER_ARCH}-${EVAS_VERSION} +MODULE_ARCH= ${LOWER_OPSYS}-${MACHINE_ARCH}-${EVAS_VERSION} PLIST_SUBST= MODULE_ARCH=${MODULE_ARCH} PRINT_PLIST_AWK+= { gsub(/${MODULE_ARCH}/, "$${MODULE_ARCH}") } -- cgit v1.2.3