FreeBSD Bugzilla – Attachment 99191 Details for
Bug 138228
[bsd.port.mk] [exp-run] New opt-in knob to compile ports with SSP
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
ports_WITH_SSP.diff
ports_WITH_SSP.diff (text/x-diff; charset=us-ascii), 1.23 KB, created by
Jeremie Le Hen
on 2013-08-15 10:36:09 UTC
(
hide
)
Description:
ports_WITH_SSP.diff
Filename:
MIME Type:
Creator:
Jeremie Le Hen
Created:
2013-08-15 10:36:09 UTC
Size:
1.23 KB
patch
obsolete
>Index: Mk/bsd.port.mk >=================================================================== >--- Mk/bsd.port.mk (revision 324742) >+++ Mk/bsd.port.mk (working copy) >@@ -301,6 +301,13 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org > # passed to the compiler by setting DEBUG_FLAGS. It is > # set to "-g" at default. > # >+# WITH_SSP - If set, SSP_FLAGS (defaults to -fstack-protector) >+# is added to CFLAGS and the necessary flags >+# are added to LDFLAGS. Note that SSP_UNSAFE >+# can be used in Makefiles by port maintainers >+# if a port breaks with it (it should be >+# extremely rare). >+# > # USE_BZIP2 - If set, this port tarballs use bzip2, not gzip, for > # compression. > # USE_LHA - If set, this port distfile uses lha for compression >@@ -1565,6 +1572,16 @@ DEBUG_FLAGS?= -g > CFLAGS:= ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS} > .endif > >+.if defined(WITH_SSP) && !defined(WITHOUT_SSP) && !defined(SSP_UNSAFE) >+SSP_CFLAGS?= -fstack-protector >+CFLAGS:= ${CFLAGS} ${SSP_CFLAGS} >+.if ${OSVERSION} < 1000044 >+LDFLAGS:= ${LDFLAGS} -fstack-protector -lssp_nonshared >+.else >+LDFLAGS:= ${LDFLAGS} -fstack-protector >+.fi >+.endif >+ > .if defined(NOPORTDOCS) > PLIST_SUB+= PORTDOCS="@comment " > .else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 138228
:
99189
|
99190
| 99191