pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/gcc48



Module Name:    pkgsrc
Committed By:   maya
Date:           Mon Sep  5 10:02:45 UTC 2016

Modified Files:
        pkgsrc/lang/gcc48: Makefile

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 pkgsrc/lang/gcc48/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/gcc48/Makefile
diff -u pkgsrc/lang/gcc48/Makefile:1.26 pkgsrc/lang/gcc48/Makefile:1.27
--- pkgsrc/lang/gcc48/Makefile:1.26     Sun Sep  4 18:29:39 2016
+++ pkgsrc/lang/gcc48/Makefile  Mon Sep  5 10:02:45 2016
@@ -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-shared
 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