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:           Tue Aug  3 07:19:20 UTC 2021

Modified Files:
        pkgsrc/mk/compiler: gcc.mk

Log Message:
gcc.mk: Add support for MKPIE when compiling Fortran code.

PR pkg/56337


To generate a diff of this commit:
cvs rdiff -u -r1.225 -r1.226 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.225 pkgsrc/mk/compiler/gcc.mk:1.226
--- pkgsrc/mk/compiler/gcc.mk:1.225     Sun Aug  1 12:35:06 2021
+++ pkgsrc/mk/compiler/gcc.mk   Tue Aug  3 07:19:20 2021
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.225 2021/08/01 12:35:06 nia Exp $
+# $NetBSD: gcc.mk,v 1.226 2021/08/03 07:19:20 nia Exp $
 #
 # This is the compiler definition for the GNU Compiler Collection.
 #
@@ -387,13 +387,16 @@ CWRAPPERS_APPEND.cc+=     -std=gnu99
 _MKPIE_CFLAGS.gcc=     -fPIC
 # XXX for executables it should be:
 #_MKPIE_CFLAGS.gcc=    -fPIE
+_MKPIE_FCFLAGS.gcc=    -fPIC
 # XXX for libraries a sink wrapper around gcc is required and used instead
 _MKPIE_LDFLAGS.gcc=    -pie
 
 _GCC_CFLAGS+=          ${_MKPIE_CFLAGS.gcc}
+_GCC_FCFLAGS+=         ${_MKPIE_FCFLAGS.gcc}
 #_GCC_LDFLAGS+=                ${_MKPIE_LDFLAGS.gcc}
 CWRAPPERS_APPEND.cc+=  ${_MKPIE_CFLAGS.gcc}
 CWRAPPERS_APPEND.cxx+= ${_MKPIE_CFLAGS.gcc}
+CWRAPPERS_APPEND.f77+= ${_MKPIE_FCFLAGS.gcc}
 # this differs for libraries and executables (handled in mk/cwrappers.mk)
 # CWRAPPERS_APPEND.ld+=        ${_MKPIE_LDFLAGS.gcc}
 .endif
@@ -447,6 +450,7 @@ CFLAGS+=    -Wno-import
 .endif
 
 CFLAGS+=       ${_GCC_CFLAGS}
+FCFLAGS+=      ${_GCC_FCFLAGS}
 
 .if !empty(_NEED_GCC2:M[yY][eE][sS])
 #



Home | Main Index | Thread Index | Old Index