pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/gcc48 gcc48: limit disabling of libssp to netbsd ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/32525887770e
branches:  trunk
changeset: 352049:32525887770e
user:      maya <maya%pkgsrc.org@localhost>
date:      Mon Sep 05 10:02:45 2016 +0000

description:
gcc48: limit disabling of libssp to netbsd only, requested by jperkin
other platforms supporting _FORTIFY_SOURCE will likely want to disable it too

bump PKGREVISION

diffstat:

 lang/gcc48/Makefile |  15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r fdf3e5b3496f -r 32525887770e lang/gcc48/Makefile
--- a/lang/gcc48/Makefile       Mon Sep 05 08:43:10 2016 +0000
+++ b/lang/gcc48/Makefile       Mon Sep 05 10:02:45 2016 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.26 2016/09/04 18:29:39 maya Exp $
+# $NetBSD: Makefile,v 1.27 2016/09/05 10:02:45 maya Exp $
 
 GCC_PKGNAME=   gcc48
 .include       "version.mk"
-PKGREVISION=   3
+PKGREVISION=   4
 
 DISTNAME=      gcc-${GCC48_DIST_VERSION}
 PKGNAME=       ${GCC_PKGNAME}-${GCC48_DIST_VERSION}
@@ -76,10 +76,15 @@
 CONFIGURE_ARGS+=       --enable-long-long
 CONFIGURE_ARGS+=       --with-local-prefix=${GCC_PREFIX:Q}
 
-# [2016-09 maya] including <stdio.h> and building with -D_FORTIFY_SOURCE
-# failsbecause ssp/stdio.h tries tp includes ssp.h, instead of ssp/ssp.h
-# + other failures, if this is corrected.
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-*)
+# [2016-09 maya] use the native SSP code in netbsd libc
+# including <stdio.h> and building with -D_FORTIFY_SOURCE fails because
+# ssp/stdio.h tries tp includes ssp.h, instead of ssp/ssp.h + other
+# failures, even if this is corrected.
 CONFIGURE_ARGS+=       --disable-libssp
+.else
+CONFIGURE_ARGS+=       --enable-libssp
+.endif
 
 CONFIGURE_ARGS+=       --enable-threads=posix
 CONFIGURE_ARGS+=       --with-boot-ldflags=${BOOT_LDFLAGS:Q}



Home | Main Index | Thread Index | Old Index