Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/gnustep-objc Fix build with PKG_OPTIONS.gnustep=...
details: https://anonhg.NetBSD.org/pkgsrc/rev/da52db6ad263
branches: trunk
changeset: 437322:da52db6ad263
user: pho <pho%pkgsrc.org@localhost>
date: Fri Aug 21 00:42:23 2020 +0000
description:
Fix build with PKG_OPTIONS.gnustep=fragile
The runtime builds fine with GCC but tests don't.
diffstat:
devel/gnustep-objc/Makefile | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r f6a3378389f9 -r da52db6ad263 devel/gnustep-objc/Makefile
--- a/devel/gnustep-objc/Makefile Thu Aug 20 23:37:39 2020 +0000
+++ b/devel/gnustep-objc/Makefile Fri Aug 21 00:42:23 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2020/04/16 09:28:39 manu Exp $
+# $NetBSD: Makefile,v 1.33 2020/08/21 00:42:23 pho Exp $
DISTNAME= libobjc2-1.8.1
PKGNAME= ${DISTNAME:S/libobjc2/gnustep-objc/}
@@ -25,11 +25,16 @@
INSTALLATION_DIRS= lib include/objc
do-configure:
- cd ${WRKSRC} && ${CMAKE} -Wno-dev .
+ cd ${WRKSRC} && ${CMAKE} -Wno-dev $(CMAKE_ARGS) .
.include "../../devel/gnustep-make/buildlink3.mk"
.include "../../mk/compiler.mk"
+# Building tests with GCC is not supported.
+.if empty(CC_VERSION:Mclang-*)
+CMAKE_ARGS+= -DTESTS:BOOL=FALSE
+.endif
+
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index