diff options
author | maya <maya@pkgsrc.org> | 2016-09-05 10:02:45 +0000 |
---|---|---|
committer | maya <maya@pkgsrc.org> | 2016-09-05 10:02:45 +0000 |
commit | c92d4ce7be40693410b4572097fb18c070dc18ae (patch) | |
tree | 3188637179302c0f793b8744b5d22ad087eea329 /lang/gcc48 | |
parent | 61414b48e6fa949313f590f78558674ded2b5127 (diff) | |
download | pkgsrc-c92d4ce7be40693410b4572097fb18c070dc18ae.tar.gz |
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 (limited to 'lang/gcc48')
-rw-r--r-- | lang/gcc48/Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lang/gcc48/Makefile b/lang/gcc48/Makefile index 11fc13343ec..89b598a5f7f 100644 --- a/lang/gcc48/Makefile +++ b/lang/gcc48/Makefile @@ -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} |