pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gcc10-libjit: use gcc10's Makefile.common
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By: wiz
Date: Thu Apr 6 16:53:21 2023 +0200
Changeset: 3e83553ef7465fdba0b4d67455dc8bf813f82504
Modified Files:
gcc10-libjit/Makefile
Log Message:
gcc10-libjit: use gcc10's Makefile.common
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3e83553ef7465fdba0b4d67455dc8bf813f82504
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
gcc10-libjit/Makefile | 79 ++-------------------------------------------------
1 file changed, 2 insertions(+), 77 deletions(-)
diffs:
diff --git a/gcc10-libjit/Makefile b/gcc10-libjit/Makefile
index e53c3ce162..79573c34fc 100644
--- a/gcc10-libjit/Makefile
+++ b/gcc10-libjit/Makefile
@@ -1,104 +1,29 @@
# $NetBSD: Makefile,v 1.19 2022/07/03 15:59:17 wiz Exp $
-GCC_PKGNAME= gcc10
-.include "version.mk"
+.include "../../lang/gcc10/Makefile.common"
-DISTNAME= gcc-${GCC10_DIST_VERSION}
PKGNAME= ${GCC_PKGNAME}-libjit-${GCC10_DIST_VERSION}
-## When bumping the PKGREVISION of this package the PKGREVISION of
-## lang/gcc10-libs needs to be bumped to be at least 1 more than the
-## PKGREVISION of this package!
-CATEGORIES= lang
-MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC10_DIST_VERSION}/}
-EXTRACT_SUFX= .tar.xz
-
-MAINTAINER= pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE= https://gcc.gnu.org/
-COMMENT= The GNU Compiler Collection (GCC) - 10.0 Release Series
-LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3
-
-DISTFILES= ${DEFAULT_DISTFILES}
-EXTRACT_ONLY= ${DEFAULT_DISTFILES}
-
-# Relocations result in a linker error on AArch64, but not x86.
-MKPIE_SUPPORTED= no
-CHECK_RELRO_SKIP+= ${GCC_PKGNAME}/lib/*
-
-NOT_FOR_PLATFORM= Interix-*-*
-
-USE_LANGUAGES= c99 c++
-USE_TOOLS+= gmake makeinfo sed:run tar:build
-USE_TOOLS.NetBSD+= gsed
+COMMENT= GNU Compiler Collection 10 (gcclibjit library)
# /usr/bin/ld: ./../intl/libintl.a(bindtextdom.o): relocation R_X86_64_32 against symbol `libintl_nl_default_dirname' can not be used when making a shared object; recompile with -fPIC
CFLAGS+= -fPIC
-GNU_CONFIGURE= yes
-GNU_CONFIGURE_STRICT= no
-## Build outside ${WRKSRC}
-OBJDIR= ../build
-CONFIGURE_DIRS= ${OBJDIR}
-CONFIGURE_SCRIPT= ../${DISTNAME}/configure
-GCC_SUBPREFIX= ${GCC_PKGNAME}
-GCC_PREFIX= ${PREFIX}/${GCC_SUBPREFIX}
-GNU_CONFIGURE_PREFIX= ${GCC_PREFIX}
-INFO_FILES= yes
-CONFIGURE_ARGS+= --disable-libstdcxx-pch
-
-UNLIMIT_RESOURCES+= datasize
-UNLIMIT_RESOURCES+= stacksize
-
-CHECK_PORTABILITY_SKIP+= contrib/*
-
INSTALLATION_DIRS= lib
-.include "options.mk"
-
-## For graphite support.
-.if !empty(PKG_OPTIONS:Mgcc-graphite)
-
-post-extract:
- ${TAR} -jxf ${DISTDIR}/${ISL16}.tar.bz2 -C ${WRKSRC}
- ${MV} ${WRKSRC}/${ISL16} ${WRKSRC}/isl
-.endif
-
-.include "../../mk/bsd.prefs.mk"
-
CONFIGURE_ARGS+= --enable-languages=jit
CONFIGURE_ARGS+= --without-static-standard-libraries
CONFIGURE_ARGS+= --disable-bootstrap
CONFIGURE_ARGS+= --enable-host-shared
-CONFIGURE_ARGS.NetBSD+= --with-gnu-ld --with-ld=/usr/bin/ld
-CONFIGURE_ARGS.NetBSD+= --with-gnu-as --with-as=/usr/bin/as
-MAKE_ENV.NetBSD+= ac_cv_func_clock_gettime=yes
-MAKE_ENV.NetBSD+= ac_cv_func_gethostbyname_r=no
-MAKE_ENV.NetBSD+= ac_cv_func_freelocale=no
-MAKE_ENV.NetBSD+= ac_cv_func_newlocale=no
-MAKE_ENV.NetBSD+= ac_cv_func_uselocale=no
MAKE_FLAGS+= BOOT_CFLAGS=${CFLAGS:Q}
MAKE_FLAGS+= BOOT_CXXFLAGS=${CXXFLAGS:Q}
MAKE_FLAGS+= BOOT_LDFLAGS=${LDFLAGS:Q}
MAKE_FLAGS+= LDFLAGS_FOR_TARGET=${LDFLAGS:Q}
MAKE_FLAGS+= CFLAGS=${CFLAGS:Q}
-MAKE_FLAGS+= CXXFLAGS=${CXXFLAGS:Q}
BUILD_TARGET= all-gcc
INSTALL_DIRS= ${WRKSRC}/${OBJDIR}/gcc
INSTALL_TARGET= jit.install-common jit.install-info
-pre-configure:
- ${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
-
-CHECK_BUILTIN.zlib:= yes
-.include "../../devel/zlib/builtin.mk"
-CHECK_BUILTIN.zlib:= no
-.if ${USE_BUILTIN.zlib:tl} == yes
-CONFIGURE_ARGS+= --with-system-zlib
-.else
-CONFIGURE_ARGS+= --without-system-zlib
-.endif
-.include "../../mk/dlopen.buildlink3.mk"
-.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index