diff options
author | Yasuhiro Kimura <yasu@utahime.org> | 2021-09-06 22:16:08 +0000 |
---|---|---|
committer | Joseph Mingrone <jrm@FreeBSD.org> | 2021-09-07 02:44:59 +0000 |
commit | 49a60393fc80385a88038b4cf34cfb88bb5992b0 (patch) | |
tree | 2b441c9a1a4310c5b7bd5ed7c93462ec8ba103ff | |
parent | 66a3fddc0f651bfd136601847e905cb5175c2407 (diff) |
editors/emacs-devel: Improve gcc port selection for NATIVECOMP
PR: 256893
Differential Revision: https://reviews.freebsd.org/D31011
-rw-r--r-- | editors/emacs-devel/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/editors/emacs-devel/Makefile b/editors/emacs-devel/Makefile index 58d1ebbedd82..6e01414738a0 100644 --- a/editors/emacs-devel/Makefile +++ b/editors/emacs-devel/Makefile @@ -2,6 +2,7 @@ PORTNAME= emacs DISTVERSION= 28.0.50.20210901 +PORTREVISION= 1 PORTEPOCH= 2 CATEGORIES= editors PKGNAMESUFFIX= -devel @@ -169,10 +170,10 @@ MAILUTILS_CONFIGURE_WITH= mailutils MAILUTILS_CONFIGURE_ENV_OFF= ac_cv_lib_lockfile_maillock=no \ ac_cv_prog_liblockfile=no MODULES_CONFIGURE_WITH= modules -NATIVECOMP_LIB_DEPENDS= libgccjit.so:lang/gcc11 +NATIVECOMP_LIB_DEPENDS= libgccjit.so:lang/${_GCC_PORT} NATIVECOMP_CONFIGURE_WITH= native-compilation NATIVECOMP_MAKE_ARGS= NATIVE_FULL_AOT=1 -NATIVECOMP_LDFLAGS= -L${LOCALBASE}/lib/gcc11 +NATIVECOMP_LDFLAGS= -L${LOCALBASE}/lib/${_GCC_PORT} OSS_CONFIGURE_ON= --with-sound=oss OTF_IMPLIES= XFT OTF_LIB_DEPENDS= libotf.so:print/libotf @@ -210,6 +211,10 @@ XWIDGETS_CONFIGURE_WITH= xwidgets .include <bsd.port.options.mk> +.if ${PORT_OPTIONS:MNATIVECOMP} && !defined(_GCC_PORT_CHOSEN) +_GCC_PORT!= ${BSDMAKE} -V_GCC_PORT USE_GCC=11+ _GCC_PORT_CHOSEN=yes +.endif + .if ${ARCH} == powerpc64le USE_GCC= yes .endif |