From 2c6de54726b596ac09f2da1e09d963a77df26816 Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Sun, 30 Oct 2016 10:46:01 -0700 Subject: [PATCH] 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. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.30.2