Received: by mail.netbsd.org (Postfix, from userid 605) id 08DEE84F0C; Mon, 19 Jul 2021 16:18:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 4012A84EF3 for ; Mon, 19 Jul 2021 16:18:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id a83jsND1R6Hx for ; Mon, 19 Jul 2021 16:18:48 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id B6E5484D41 for ; Mon, 19 Jul 2021 16:18:48 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id B011AFA95; Mon, 19 Jul 2021 16:18:48 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1626711528113410" MIME-Version: 1.0 Date: Mon, 19 Jul 2021 16:18:48 +0000 From: "Tobias Nygren" Subject: CVS commit: pkgsrc/lang/llvm To: pkgsrc-changes@NetBSD.org Reply-To: tnn@netbsd.org X-Mailer: log_accum Message-Id: <20210719161848.B011AFA95@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1626711528113410 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: tnn Date: Mon Jul 19 16:18:48 UTC 2021 Modified Files: pkgsrc/lang/llvm: Makefile options.mk Log Message: llvm: move powerpc fix from options.mk to Makefile Compiler options/fixes pertaining to the host compiler should not depend on the target selection. To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 pkgsrc/lang/llvm/Makefile cvs rdiff -u -r1.9 -r1.10 pkgsrc/lang/llvm/options.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1626711528113410 Content-Disposition: inline Content-Length: 1563 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/llvm/Makefile diff -u pkgsrc/lang/llvm/Makefile:1.65 pkgsrc/lang/llvm/Makefile:1.66 --- pkgsrc/lang/llvm/Makefile:1.65 Mon Jul 19 13:55:37 2021 +++ pkgsrc/lang/llvm/Makefile Mon Jul 19 16:18:48 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.65 2021/07/19 13:55:37 jperkin Exp $ +# $NetBSD: Makefile,v 1.66 2021/07/19 16:18:48 tnn Exp $ # # when updating this, please also update: # devel/include-what-you-use @@ -102,6 +102,12 @@ PLIST_SUBST+= SOEXT=${SOEXT} CXXFLAGS+= -march=i586 .endif +.if !empty(MACHINE_ARCH:Mpowerpc*) +# Needed to avoid "relocation truncated to fit: R_PPC_REL24" +CFLAGS+= -mlongcall +CXXFLAGS+= -mlongcall +.endif + .include "options.mk" # replacing config.guess is required even for cmake. Index: pkgsrc/lang/llvm/options.mk diff -u pkgsrc/lang/llvm/options.mk:1.9 pkgsrc/lang/llvm/options.mk:1.10 --- pkgsrc/lang/llvm/options.mk:1.9 Mon Jul 12 18:41:02 2021 +++ pkgsrc/lang/llvm/options.mk Mon Jul 19 16:18:48 2021 @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.9 2021/07/12 18:41:02 adam Exp $ +# $NetBSD: options.mk,v 1.10 2021/07/19 16:18:48 tnn Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.llvm @@ -26,9 +26,6 @@ PKG_SUGGESTED_OPTIONS+= terminfo PKG_SUGGESTED_OPTIONS+= llvm-target-sparc .elif !empty(MACHINE_ARCH:Mpowerpc*) PKG_SUGGESTED_OPTIONS+= llvm-target-powerpc -# Needed to avoid "relocation truncated to fit: R_PPC_REL24" -CFLAGS+= -mlongcall -CXXFLAGS+= -mlongcall .elif !empty(MACHINE_ARCH:Mearm*) PKG_SUGGESTED_OPTIONS+= llvm-target-arm .elif !empty(MACHINE_ARCH:M*mips*) --_----------=_1626711528113410--