pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/compiler gcc.mk: Remove bogus test for NetBSD.
details: https://anonhg.NetBSD.org/pkgsrc/rev/21d57b2a12a6
branches: trunk
changeset: 456500:21d57b2a12a6
user: nia <nia%pkgsrc.org@localhost>
date: Sun Aug 01 12:35:06 2021 +0000
description:
gcc.mk: Remove bogus test for NetBSD.
diffstat:
mk/compiler/gcc.mk | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (26 lines):
diff -r 10a19b94b0d7 -r 21d57b2a12a6 mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk Sun Aug 01 11:56:13 2021 +0000
+++ b/mk/compiler/gcc.mk Sun Aug 01 12:35:06 2021 +0000
@@ -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 @@
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}
Home |
Main Index |
Thread Index |
Old Index