tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: MKPIE problems



Thus wrote Thomas Klausner (tk%giga.or.at@localhost):

> I see a couple problems when enabling MKPIE (in addition to the other
> hardening flags):

same for me with a configure script building C++ source.
Mine get fixed by going:
Index: compiler/gcc.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/compiler/gcc.mk,v
retrieving revision 1.188
diff -u -r1.188 gcc.mk
--- compiler/gcc.mk     15 Nov 2017 19:04:24 -0000      1.188
+++ compiler/gcc.mk     29 Nov 2017 09:08:56 -0000
@@ -343,6 +343,7 @@
 _GCC_CFLAGS+=          ${_MKPIE_CFLAGS.gcc}
 #_GCC_LDFLAGS+=                ${_MKPIE_LDFLAGS.gcc}
 CWRAPPERS_APPEND.cc+=  ${_MKPIE_CFLAGS.gcc}
+CWRAPPERS_APPEND.cxx+= ${_MKPIE_CFLAGS.gcc}
 # this differs for libraries and executables (handled in mk/cwrappers.mk)
 # CWRAPPERS_APPEND.ld+=        ${_MKPIE_LDFLAGS.gcc}
 .endif

regards,
	spz


Home | Main Index | Thread Index | Old Index