1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

- Fix build on systems where GCC stack protection (aka Propolice)

was enabled for userland on src/share/mk/bsd.sys.mk
  (SVN rev 180012 on 2008-06-25 21:33:28Z by ru)
- For OSVERSION >= 800040, add -fstack-protector to LDFLAGS
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2009-11-22 20:28:29 +00:00
parent eefcf2a610
commit 83960ce670
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=244659
2 changed files with 14 additions and 0 deletions

View File

@ -40,6 +40,13 @@ CONFIGURE_ARGS+= --extra-cflags="${CPPFLAGS} ${CFLAGS} -fPIC -I${LOCALBASE}/incl
.include <bsd.port.pre.mk>
# Around the time GCC stack protection (aka Propolice) for userland
# was enabled on src/share/mk/bsd.sys.mk
# SVN rev 180012 on 2008-06-25 21:33:28Z by ru
.if ${OSVERSION} >= 800040
LDFLAGS+= -fstack-protector
.endif
.if ${ARCH}=="i386"
MAKE_ENV+= ARCH_X86="1"
.endif

View File

@ -40,6 +40,13 @@ CONFIGURE_ARGS+= --extra-cflags="${CPPFLAGS} ${CFLAGS} -fPIC -I${LOCALBASE}/incl
.include <bsd.port.pre.mk>
# Around the time GCC stack protection (aka Propolice) for userland
# was enabled on src/share/mk/bsd.sys.mk
# SVN rev 180012 on 2008-06-25 21:33:28Z by ru
.if ${OSVERSION} >= 800040
LDFLAGS+= -fstack-protector
.endif
.if ${ARCH}=="i386"
MAKE_ENV+= ARCH_X86="1"
.endif