Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Nov 2017 03:06:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 223391] /Mk/bsd.port.mk should add SSP_LDFLAGS?=
Message-ID:  <bug-223391-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223391

            Bug ID: 223391
           Summary: /Mk/bsd.port.mk should add SSP_LDFLAGS?=3D
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: dewayne@heuristicsystems.com.au
                CC: freebsd-ports-bugs@FreeBSD.org

Unfortunately for internet facing applications we use -fstack-protector-str=
ong,
so I modified my bsd.port.mk to accommodate.  Perhaps you would consider the
same.

My change is basically, add one line & change one line:

--- /usr/ports/Mk/bsd.ssp.mk    (revision 453385)
+++ /usr/ports/Mk/bsd.ssp.mk    (working copy)
@@ -7,8 +7,9 @@
     (${ARCH} =3D=3D i386 || ${ARCH} =3D=3D amd64)
 # Overridable as a user may want to use -fstack-protector-all
 SSP_CFLAGS?=3D   -fstack-protector
+SSP_LDFLAGS?=3D  -fstack-protector
 CFLAGS+=3D       ${SSP_CFLAGS}
-LDFLAGS+=3D      -fstack-protector
+LDFLAGS+=3D      ${SSP_LDFLAGS}
 # -lssp_nonshared is needed on i386 where /usr/lib/libc.so is not an ldscr=
ipt
 # This is currently unused XXX
 .      if defined(SSP_NEED_NONSHARED)

And air gap machines
SSP_CFLAGS=3D -fno-stack-protector
SSP_LDFLAGS=3D -fno-stack-protector

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223391-13>