Remove redundancy in make vars
authorJoey Parrish <joey.parrish@gmail.com>
Sun, 30 Oct 2016 17:46:01 +0000 (10:46 -0700)
committerJoey Parrish <joey.parrish@gmail.com>
Sun, 30 Oct 2016 17:46:03 +0000 (10:46 -0700)
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

index 846daf078535de4b51bd4ae5cbb9144f2148a4ef..2800b025ff979c4521fe3730b191c007d99b615d 100644 (file)
--- 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