pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/flex turn on linux source compatibility for AIX ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/19ae24bf0271
branches:  trunk
changeset: 555197:19ae24bf0271
user:      sno <sno%pkgsrc.org@localhost>
date:      Wed Feb 25 21:03:01 2009 +0000

description:
turn on linux source compatibility for AIX - flex dumps core otherwise
when try to allocate 0 bytes

diffstat:

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

diffs (20 lines):

diff -r bfd9e3220254 -r 19ae24bf0271 devel/flex/Makefile
--- a/devel/flex/Makefile       Wed Feb 25 20:59:56 2009 +0000
+++ b/devel/flex/Makefile       Wed Feb 25 21:03:01 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2008/05/18 00:43:51 tnn Exp $
+# $NetBSD: Makefile,v 1.31 2009/02/25 21:03:01 sno Exp $
 
 DISTNAME=              flex-2.5.35
 CATEGORIES=            lang
@@ -20,6 +20,10 @@
 
 .include "../../mk/bsd.prefs.mk"
 
+.if ${LOWER_OPSYS} == "aix"
+CFLAGS+=               -D_LINUX_SOURCE_COMPAT
+.endif
+
 #.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss])
 USE_LANGUAGES=         c c++
 USE_TOOLS+=            gmake   # bmake has problems with the test suite



Home | Main Index | Thread Index | Old Index