aboutsummaryrefslogtreecommitdiffstats
path: root/misc/dahdi-kmod26
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2013-09-20 20:54:54 +0800
committerbdrewery <bdrewery@FreeBSD.org>2013-09-20 20:54:54 +0800
commitd6c170198e97f1109801df05948762e423645c4b (patch)
treee61ab76efa292f985d8e20e449572329fa964c1c /misc/dahdi-kmod26
parent6174635d1f2fb489f2267a3388ddd0cc658b8c00 (diff)
downloadfreebsd-ports-gnome-d6c170198e97f1109801df05948762e423645c4b.tar.gz
freebsd-ports-gnome-d6c170198e97f1109801df05948762e423645c4b.tar.zst
freebsd-ports-gnome-d6c170198e97f1109801df05948762e423645c4b.zip
SSP support has been added to ports with WITH_SSP for i386 and amd64
on FreeBSD 10, and amd64 on earlier versions. SSP_UNSAFE is added to disable in a port if it fails to build, but this should only be used in rare circumstances such as kernel modules. Otherwise, the port may just be failing due to lack of respecting LDFLAGS. On FreeBSD 10, this uses an ldscript in /usr/lib/libc.so to pull in libssp_nonshared.a to address issues linking on i386 [1]. On earlier FreeBSD versions the WITH_SSP knob will add -lssp_nonshared to LDFLAGS on i386. This is not needed on amd64. However, several hundred ports do not currently respect LDFLAGS, so this support is disabled currently as it causes build failures if a dependency is looking for the stack_chk symbols. Many thanks to jlh@ for this as he had many years of patience in getting all of the necessary pieces [1][2] in. [1] http://svnweb.freebsd.org/base/head/lib/libc/libc.ldscript?revision=251668&view=markup PR: ports/138228 [2] Submitted by: jlh (bsd.ssp.mk based on) Reviewed by: bapt With hat: portmgr exp-runs done: 37 over a month on 91i386,91amd64,10i386,10amd64
Diffstat (limited to 'misc/dahdi-kmod26')
-rw-r--r--misc/dahdi-kmod26/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/misc/dahdi-kmod26/Makefile b/misc/dahdi-kmod26/Makefile
index 5cc31abfaa87..1b2e117e33a9 100644
--- a/misc/dahdi-kmod26/Makefile
+++ b/misc/dahdi-kmod26/Makefile
@@ -1,9 +1,5 @@
-# Ports collection makefile for: dahdi
-# Date created: 3 Mar 2010
-# Whom: Maxim Khon <fjoe@FreeBSD.org>
-#
+# Created by: Maxim Khon <fjoe@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= dahdi-kmod26
PORTVERSION= ${DAHDI_VERSION:S/-/./g}
@@ -22,6 +18,8 @@ COMMENT= Digium/Asterisk Hardware Device Interface
RUN_DEPENDS= ${LOCALBASE}/sbin/dahdi_cfg:${PORTSDIR}/misc/dahdi
+SSP_UNSAFE= kernel module does not support ssp
+
DAHDI_VERSION= 2.6.1-r10738
DAHDI_TOOLS_VERSION= 2.4.0-rc1
OSLEC_VERSION= 2.6.35.4