diff options
author | maya <maya> | 2016-09-05 10:02:45 +0000 |
---|---|---|
committer | maya <maya> | 2016-09-05 10:02:45 +0000 |
commit | 2dbb19d105be2631d73b354cba728f0c2508a9d2 (patch) | |
tree | 0788269a597c22291e1c352f92a176f756950877 | |
parent | 0e3b5c274c2f304b5d9abeeb4f399c50845f7bfb (diff) | |
download | pkgsrc-2dbb19d105be2631d73b354cba728f0c2508a9d2.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
-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} |