pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mk/compiler
Module Name: pkgsrc
Committed By: nia
Date: Thu Aug 3 06:06:18 UTC 2023
Modified Files:
pkgsrc/mk/compiler: gcc.mk
Log Message:
mk: Restore GCC's specific handling of fPIC for Fortran.
Reported by various that it was lost in the gcc-style-args.mk conversion.
To generate a diff of this commit:
cvs rdiff -u -r1.259 -r1.260 pkgsrc/mk/compiler/gcc.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mk/compiler/gcc.mk
diff -u pkgsrc/mk/compiler/gcc.mk:1.259 pkgsrc/mk/compiler/gcc.mk:1.260
--- pkgsrc/mk/compiler/gcc.mk:1.259 Wed Aug 2 15:58:07 2023
+++ pkgsrc/mk/compiler/gcc.mk Thu Aug 3 06:06:18 2023
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.259 2023/08/02 15:58:07 nia Exp $
+# $NetBSD: gcc.mk,v 1.260 2023/08/03 06:06:18 nia Exp $
#
# This is the compiler definition for the GNU Compiler Collection.
#
@@ -530,6 +530,13 @@ _STACK_CHECK_CFLAGS= -fstack-clash-prote
_GCC_CFLAGS+= ${_STACK_CHECK_CFLAGS}
.endif
+.if ${_PKGSRC_MKPIE} == "yes"
+_MKPIE_FCFLAGS= -fPIC
+. if ${PKGSRC_OVERRIDE_MKPIE:tl} == "no"
+_GCC_FCFLAGS+= ${_MKPIE_FCFLAGS}
+. endif
+.endif
+
# GCC has this annoying behaviour where it advocates in a multi-line
# banner the use of "#include" over "#import" when including headers.
# This generates a huge number of warnings when building practically all
Home |
Main Index |
Thread Index |
Old Index