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.
This commit is contained in:
Joey Parrish 2016-10-30 10:46:01 -07:00
parent c31a2fa6b2
commit 2c6de54726
1 changed files with 3 additions and 2 deletions

View File

@ -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