From: Joey Parrish Date: Sun, 30 Oct 2016 17:46:01 +0000 (-0700) Subject: Remove redundancy in make vars X-Git-Tag: archive/raspbian/1.68-2+rpi1~74^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2c6de54726b596ac09f2da1e09d963a77df26816;p=pigpio.git Remove redundancy in make vars Refer to CC in vars that use gcc, instead of hard-coding gcc twice. This makes it easier to override those vars for cross-compilation. --- diff --git a/Makefile b/Makefile index 846daf0..2800b02 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,9 @@ CC = gcc AR = ar RANLIB = ranlib SIZE = size -SHLIB = gcc -shared -STRIPLIB = strip --strip-unneeded +SHLIB = $(CC) -shared +STRIP = strip +STRIPLIB = $(STRIP) --strip-unneeded CFLAGS += -O3 -Wall -pthread