Received: by mail.netbsd.org (Postfix, from userid 605) id F177F84E7C; Sun, 1 Aug 2021 12:35:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 33F6284E7B for ; Sun, 1 Aug 2021 12:35:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id qWhxKJ4L8EOC for ; Sun, 1 Aug 2021 12:35:06 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 7CB9884E77 for ; Sun, 1 Aug 2021 12:35:06 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 6951BFA97; Sun, 1 Aug 2021 12:35:06 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_16278213068730" MIME-Version: 1.0 Date: Sun, 1 Aug 2021 12:35:06 +0000 From: "Nia Alarie" Subject: CVS commit: pkgsrc/mk/compiler To: pkgsrc-changes@NetBSD.org Reply-To: nia@netbsd.org X-Mailer: log_accum Message-Id: <20210801123506.6951BFA97@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_16278213068730 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: nia Date: Sun Aug 1 12:35:06 UTC 2021 Modified Files: pkgsrc/mk/compiler: gcc.mk Log Message: gcc.mk: Remove bogus test for NetBSD. To generate a diff of this commit: cvs rdiff -u -r1.224 -r1.225 pkgsrc/mk/compiler/gcc.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_16278213068730 Content-Disposition: inline Content-Length: 953 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/mk/compiler/gcc.mk diff -u pkgsrc/mk/compiler/gcc.mk:1.224 pkgsrc/mk/compiler/gcc.mk:1.225 --- pkgsrc/mk/compiler/gcc.mk:1.224 Tue Apr 6 12:07:57 2021 +++ pkgsrc/mk/compiler/gcc.mk Sun Aug 1 12:35:06 2021 @@ -1,4 +1,4 @@ -# $NetBSD: gcc.mk,v 1.224 2021/04/06 12:07:57 nia Exp $ +# $NetBSD: gcc.mk,v 1.225 2021/08/01 12:35:06 nia Exp $ # # This is the compiler definition for the GNU Compiler Collection. # @@ -383,15 +383,13 @@ _WRAP_EXTRA_ARGS.CC+= -std=gnu99 CWRAPPERS_APPEND.cc+= -std=gnu99 .endif -.if ${OPSYS} == "NetBSD" +.if ${_PKGSRC_MKPIE} == "yes" _MKPIE_CFLAGS.gcc= -fPIC # XXX for executables it should be: #_MKPIE_CFLAGS.gcc= -fPIE # XXX for libraries a sink wrapper around gcc is required and used instead _MKPIE_LDFLAGS.gcc= -pie -.endif -.if ${_PKGSRC_MKPIE} == "yes" _GCC_CFLAGS+= ${_MKPIE_CFLAGS.gcc} #_GCC_LDFLAGS+= ${_MKPIE_LDFLAGS.gcc} CWRAPPERS_APPEND.cc+= ${_MKPIE_CFLAGS.gcc} --_----------=_16278213068730--