On Thu, Jul 16, 2020 at 11:52:26AM -0600, Thomas Frohwein wrote: [...] > +# Integrated clang assembler doesn't work with x86 - Bug #698164 > +# remove if build can be updated to clang 9.0.0 (see > +# https://github.com/KhronosGroup/Vulkan-Loader/issues/252) > +#.if ${MACHINE_ARCH}==i386 && ${PROPERTIES:Mclang} > +#CFLAGS += -fno-integrated-as > +#.endif [...]
Oops, this wasn't meant to be commented out. Here's the proper diff: Index: Makefile =================================================================== RCS file: /cvs/ports/graphics/vulkan-loader/Makefile,v retrieving revision 1.7 diff -u -p -r1.7 Makefile --- Makefile 7 Jul 2020 08:08:06 -0000 1.7 +++ Makefile 16 Jul 2020 18:17:21 -0000 @@ -7,6 +7,7 @@ PKGNAME = vulkan-loader-${V} GH_TAGNAME = sdk-${V} GH_ACCOUNT = KhronosGroup GH_PROJECT = Vulkan-Loader +REVISION = 0 SHARED_LIBS += vulkan 0.1 # 1.2 @@ -34,6 +35,15 @@ MODPY_RUNDEP = No # Tests only build if Google Test framework is in directory external/ NO_TEST = Yes + +.include <bsd.port.arch.mk> + +# Integrated clang assembler doesn't work with x86 - Bug #698164 +# remove if build can be updated to clang 9.0.0 (see +# https://github.com/KhronosGroup/Vulkan-Loader/issues/252) +.if ${MACHINE_ARCH}==i386 && ${PROPERTIES:Mclang} +CFLAGS += -fno-integrated-as +.endif pre-configure: ${SUBST_CMD} ${WRKSRC}/CMakeLists.txt