Build of rgbds-0.4.0 intially failed with 
'cc1: error: unrecognized command line option "-std=c11"'

By adding these COMPILER and COMPILER_LANGS lines, the build on sparc64
was fixed by making the build use ports-gcc instead.

cc maintainer

Comments? ok?

--Kurt

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/rgbds/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- Makefile    12 Apr 2020 04:24:56 -0000      1.6
+++ Makefile    17 Apr 2020 18:57:31 -0000
@@ -21,6 +21,9 @@ WANTLIB += c m png z
 
 MASTER_SITES = https://github.com/rednex/rgbds/releases/download/v$V/
 
+COMPILER =     base-clang ports-gcc
+COMPILER_LANGS =       c
+
 LIB_DEPENDS =  graphics/png
 
 MAKE_FLAGS =   CFLAGS="${CFLAGS}" \

Reply via email to