pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libev libev: Build with _REENTRANT on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/20bb0b6f6e25
branches:  trunk
changeset: 442982:20bb0b6f6e25
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Fri Dec 04 15:56:10 2020 +0000

description:
libev: Build with _REENTRANT on SunOS.

Fixes issues seen with multithreaded programs on illumos.  Reported by
andyf @ OmniOS.

diffstat:

 devel/libev/Makefile |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 707418c8dadd -r 20bb0b6f6e25 devel/libev/Makefile
--- a/devel/libev/Makefile      Fri Dec 04 15:23:36 2020 +0000
+++ b/devel/libev/Makefile      Fri Dec 04 15:56:10 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2020/05/23 16:19:10 nia Exp $
+# $NetBSD: Makefile,v 1.24 2020/12/04 15:56:10 jperkin Exp $
 
 DISTNAME=      libev-4.33
 CATEGORIES=    devel
@@ -13,9 +13,13 @@
 GNU_CONFIGURE=                 yes
 GNU_CONFIGURE_LIBSUBDIR=       ev
 CONFIGURE_ARGS+=               --includedir=${PREFIX}/include/ev
+
 # Explicitly disable inotify on SunOS, assumes Linux statfs.
-CONFIGURE_ENV.SunOS+=          ac_cv_header_sys_inotify_h=no
-CONFIGURE_ENV.SunOS+=          ac_cv_header_sys_epoll_h=no
+CONFIGURE_ENV.SunOS+=  ac_cv_header_sys_inotify_h=no
+CONFIGURE_ENV.SunOS+=  ac_cv_header_sys_epoll_h=no
+
+# Issues seen with multithreaded programs without _REENTRANT.
+CPPFLAGS.SunOS+=       -D_REENTRANT
 
 .include "../../mk/bsd.prefs.mk"
 



Home | Main Index | Thread Index | Old Index