projects
/
pigpio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c31a2fa
)
Remove redundancy in make vars
author
Joey Parrish
<joey.parrish@gmail.com>
Sun, 30 Oct 2016 17:46:01 +0000
(10:46 -0700)
committer
Joey 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
patch
|
blob
|
history
diff --git
a/Makefile
b/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