mirror of https://github.com/joan2937/pigpio
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:
parent
c31a2fa6b2
commit
2c6de54726
5
Makefile
5
Makefile
|
@ -3,8 +3,9 @@ CC = gcc
|
||||||
AR = ar
|
AR = ar
|
||||||
RANLIB = ranlib
|
RANLIB = ranlib
|
||||||
SIZE = size
|
SIZE = size
|
||||||
SHLIB = gcc -shared
|
SHLIB = $(CC) -shared
|
||||||
STRIPLIB = strip --strip-unneeded
|
STRIP = strip
|
||||||
|
STRIPLIB = $(STRIP) --strip-unneeded
|
||||||
|
|
||||||
CFLAGS += -O3 -Wall -pthread
|
CFLAGS += -O3 -Wall -pthread
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue