pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/gnustep-objc



Module Name:    pkgsrc
Committed By:   pho
Date:           Fri Aug 21 00:42:23 UTC 2020

Modified Files:
        pkgsrc/devel/gnustep-objc: Makefile

Log Message:
Fix build with PKG_OPTIONS.gnustep=fragile

The runtime builds fine with GCC but tests don't.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 pkgsrc/devel/gnustep-objc/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/gnustep-objc/Makefile
diff -u pkgsrc/devel/gnustep-objc/Makefile:1.32 pkgsrc/devel/gnustep-objc/Makefile:1.33
--- pkgsrc/devel/gnustep-objc/Makefile:1.32     Thu Apr 16 09:28:39 2020
+++ pkgsrc/devel/gnustep-objc/Makefile  Fri Aug 21 00:42:23 2020
@@ -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 @@ GNUSTEP_OVERRIDE_INSTALL=   YES
 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