From 53e1c4b6b1a1376d529019bf8bd1e4e427da9c23 Mon Sep 17 00:00:00 2001 From: Guido Falsi Date: Wed, 16 Jan 2019 15:20:08 +0100 Subject: Respect the CC variable, if defined. On recent FreeBSD versions gcc is not available by default, clang, named cc, being the default system compiler. --- Makefile.in | 1 + svgtopng/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 10dd5778..ec109dc0 100755 --- a/Makefile.in +++ b/Makefile.in @@ -1,5 +1,6 @@ PREFIX=@prefix@ DESTDIR= +CC?=gcc SUBDIRS := svgtopng diff --git a/svgtopng/Makefile b/svgtopng/Makefile index 78521f3d..61a0352a 100644 --- a/svgtopng/Makefile +++ b/svgtopng/Makefile @@ -5,7 +5,7 @@ ICONDIR ?= elementary-xfce all: svgtopng svgtopng: - gcc -Wall -Werror -O0 -pipe \ + ${CC} -Wall -Werror -O0 -pipe \ svgtopng.c -o svgtopng \ `pkg-config --libs --cflags gtk+-3.0` \ `pkg-config --libs --cflags gdk-pixbuf-2.0` -- cgit v1.2.1