]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: may need c++ tools
authorfennecdjay <fennecdjay@gmail.com>
Mon, 27 Feb 2023 12:11:52 +0000 (13:11 +0100)
committerfennecdjay <fennecdjay@gmail.com>
Mon, 27 Feb 2023 12:11:52 +0000 (13:11 +0100)
Makefile

index 653525735bad35c197d03816cd40dbd4d9f11eec..3e91a1de06f7fc533c6f5b3ecfaaedfa3245ac74 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -74,11 +74,14 @@ CFLAGS += -Wno-pedantic
 
 CFLAGS += -DGWION_BUILTIN
 
+# with_config may require a c++ linker
+LINKER ?= ${CC}
+
 all: options-show prg
 
 prg: ${GWLIBS} ${config_obj} src/main.o
        @$(info link ${PRG})
-       ${CC} src/main.o -o ${PRG} ${config_obj} ${PLUGLIBS} ${LDFLAGS} ${LIBS}
+       ${LINKER} src/main.o -o ${PRG} ${config_obj} ${PLUGLIBS} ${LDFLAGS} ${LIBS}
 
 options-show:
        @$(call _options)