pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/flex Add workaround for fixing build on Linux



details:   https://anonhg.NetBSD.org/pkgsrc/rev/27eb00ea6081
branches:  trunk
changeset: 370584:27eb00ea6081
user:      triaxx <triaxx%pkgsrc.org@localhost>
date:      Fri Oct 20 06:22:24 2017 +0000

description:
Add workaround for fixing build on Linux

See https://github.com/westes/flex/issues/241
The problem is fixed in master branch and the workaround could be removed
in the next version update.

diffstat:

 devel/flex/Makefile |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 0288d48a2769 -r 27eb00ea6081 devel/flex/Makefile
--- a/devel/flex/Makefile       Thu Oct 19 23:29:56 2017 +0000
+++ b/devel/flex/Makefile       Fri Oct 20 06:22:24 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.60 2017/07/24 14:34:49 maya Exp $
+# $NetBSD: Makefile,v 1.61 2017/10/20 06:22:24 triaxx Exp $
 
 DISTNAME=      flex-2.6.4
 CATEGORIES=    devel lang
@@ -32,6 +32,9 @@
 # https://github.com/westes/flex/issues/219
 CONFIGURE_ENV.NetBSD+= ac_cv_func_reallocarray=no
 
+# https://github.com/westes/flex/issues/241
+CFLAGS.Linux+=         -D_GNU_SOURCE
+
 #.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss])
 USE_LANGUAGES=         c c++
 USE_TOOLS+=            bash:build



Home | Main Index | Thread Index | Old Index