Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libev libev: Fix build on NetBSD/sparc



details:   https://anonhg.NetBSD.org/pkgsrc/rev/af9e65639f9e
branches:  trunk
changeset: 432622:af9e65639f9e
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat May 23 16:19:10 2020 +0000

description:
libev: Fix build on NetBSD/sparc

>From Tobias Ulmer, thanks.

diffstat:

 devel/libev/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 517596e5f362 -r af9e65639f9e devel/libev/Makefile
--- a/devel/libev/Makefile      Sat May 23 15:52:24 2020 +0000
+++ b/devel/libev/Makefile      Sat May 23 16:19:10 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2020/03/22 16:01:46 nia Exp $
+# $NetBSD: Makefile,v 1.23 2020/05/23 16:19:10 nia Exp $
 
 DISTNAME=      libev-4.33
 CATEGORIES=    devel
@@ -17,4 +17,11 @@
 CONFIGURE_ENV.SunOS+=          ac_cv_header_sys_inotify_h=no
 CONFIGURE_ENV.SunOS+=          ac_cv_header_sys_epoll_h=no
 
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc)
+# Prevent ev.c from using v9 memory barrier instructions
+CPPFLAGS+=     -D__sparc_v8__=1
+.endif
+
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index