Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 592134beac454449658ff54e7dceefb5 > files > 8

elementary-xfce-0.13.1-3.mga7.src.rpm

From 13a80f57cb7f69ae0c1a1a0bf9a2e84c346d2a95 Mon Sep 17 00:00:00 2001
From: Guido Falsi <mad@madpilot.net>
Date: Wed, 16 Jan 2019 15:20:08 +0100
Subject: [PATCH 08/10] 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`
-- 
2.20.1