diff options
author | Lorenzo Salvadore <salvadore@FreeBSD.org> | 2025-03-04 11:29:58 +0100 |
---|---|---|
committer | Lorenzo Salvadore <salvadore@FreeBSD.org> | 2025-03-05 16:32:48 +0100 |
commit | 1846a7fe9b587894845d69a895510f37eb2f40d8 (patch) | |
tree | 9a7654bbb655194c7daa1d415fc56fef7d67d8dd | |
parent | www/foreign-cdm: Support both rl9 and c7 (diff) |
lang/gcc12: Fix linking with libisl.so
Fix linking with libisl.so depending on GRAPHITE option, which is
now implemented through options helpers.
Co-authored-by: Gerald Pfeifer <gerald@FreeBSD.org>
PR: 276070
Reported by:Ivan Rozhuk <rozhuk.im@gmail.com>
-rw-r--r-- | lang/gcc12/Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lang/gcc12/Makefile b/lang/gcc12/Makefile index 66b1aaf674a9..2eb968b03568 100644 --- a/lang/gcc12/Makefile +++ b/lang/gcc12/Makefile @@ -1,6 +1,6 @@ PORTNAME= gcc PORTVERSION= 12.4.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang MASTER_SITES= GCC PKGNAMESUFFIX= ${SUFFIX} @@ -65,6 +65,9 @@ CFLAGS:= ${CFLAGS:S/mcpu=g/mcpu=G/} CXXFLAGS:= ${CFLAGS:S/mcpu=g/mcpu=G/} .endif +GRAPHITE_LIB_DEPENDS= libisl.so:devel/isl +GRAPHITE_CONFIGURE_WITH+= isl + .include <bsd.port.pre.mk> # Extraction fails with poudriere on aarch64 for GCC 12. @@ -141,11 +144,6 @@ INFO+= gcc${SUFFIX}/libquadmath \ SUB_FILES= pkg-message SUB_LIST+= TARGLIB=${TARGLIB} -.if ${PORT_OPTIONS:MGRAPHITE} -LIB_DEPENDS+= libisl.so:devel/isl -CONFIGURE_ARGS+=--with-isl=${LOCALBASE} -.endif - CONFIGURE_ARGS+=--enable-languages=${LANGUAGES} pre-everything:: |