pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/webkit-gtk Fix build on NetBSD-6.x.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3bd0274908d7
branches:  trunk
changeset: 652434:3bd0274908d7
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Jun 01 20:58:37 2015 +0000

description:
Fix build on NetBSD-6.x.
Patch from Leonardo Taccari, tested with current pkgsrc version
by Marc Baudoin.

diffstat:

 www/webkit-gtk/Makefile.common |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 55fa9b3c58f6 -r 3bd0274908d7 www/webkit-gtk/Makefile.common
--- a/www/webkit-gtk/Makefile.common    Mon Jun 01 17:53:05 2015 +0000
+++ b/www/webkit-gtk/Makefile.common    Mon Jun 01 20:58:37 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.41 2015/05/28 05:30:51 wiz Exp $
+# $NetBSD: Makefile.common,v 1.42 2015/06/01 20:58:37 wiz Exp $
 # used by www/webkit-gtk/Makefile
 
 DISTNAME=      webkitgtk-2.4.9
@@ -29,6 +29,11 @@
                        --disable-geolocation \
                        --disable-gtk-doc-html
 
+.include "../../mk/compiler.mk"
+.if (!empty(PKGSRC_COMPILER:Mgcc) && !empty(_USE_PKGSRC_GCC:M[yY][eE][sS]))
+BUILDLINK_TRANSFORM+=  rm:-D_FORTIFY_SOURCE=2
+.endif
+
 .include "options.mk"
 
 REPLACE_PERL+= Source/JavaScriptCore/create_hash_table \
@@ -55,7 +60,6 @@
 
 CXXFLAGS.SunOS+=       -fpermissive
 
-.include "../../mk/compiler.mk"
 .if !empty(PKGSRC_COMPILER:Mclang)
 CXXFLAGS+=     -std=c++11 -Wno-c++11-narrowing
 .endif



Home | Main Index | Thread Index | Old Index