summaryrefslogtreecommitdiff
path: root/package/wiringPi/patches/patch-wiringPi_Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbrodkorb@conet.de>2014-12-08 12:33:25 +0100
committerWaldemar Brodkorb <wbrodkorb@conet.de>2014-12-08 12:33:25 +0100
commitaf675a5554636123a32342b109460deb75f96eb6 (patch)
tree0964711ed08ca6d8493a4c571d3772712625e5b2 /package/wiringPi/patches/patch-wiringPi_Makefile
parent7a5dca9e6a7bce1a45ef6f79ac3df698013c683d (diff)
add wiringPi package with help of Martin
Diffstat (limited to 'package/wiringPi/patches/patch-wiringPi_Makefile')
-rw-r--r--package/wiringPi/patches/patch-wiringPi_Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/wiringPi/patches/patch-wiringPi_Makefile b/package/wiringPi/patches/patch-wiringPi_Makefile
new file mode 100644
index 000000000..68053af79
--- /dev/null
+++ b/package/wiringPi/patches/patch-wiringPi_Makefile
@@ -0,0 +1,29 @@
+--- wiringPi-0.1.orig/wiringPi/Makefile 2014-12-05 14:48:57.000000000 +0100
++++ wiringPi-0.1/wiringPi/Makefile 2014-12-05 15:38:39.214862303 +0100
+@@ -33,10 +33,10 @@ DYNAMIC=libwiringPi.so.$(VERSION)
+
+ #DEBUG = -g -O0
+ DEBUG = -O2
+-CC = gcc
++CC ?= gcc
+ INCLUDE = -I.
+ DEFS = -D_GNU_SOURCE
+-CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Winline $(INCLUDE) -pipe -fPIC
++CFLAGS ?= $(DEFS) -Wformat=2 -Wall -Winline $(INCLUDE) -pipe -fPIC
+
+ LIBS =
+
+@@ -71,11 +71,11 @@ $(STATIC): $(OBJ)
+
+ $(DYNAMIC): $(OBJ)
+ @echo "[Link (Dynamic)]"
+- @$(CC) -shared -Wl,-soname,libwiringPi.so -o libwiringPi.so.$(VERSION) -lpthread $(OBJ)
++ $(CC) -shared -Wl,-soname,libwiringPi.so -o libwiringPi.so.$(VERSION) -lpthread $(OBJ)
+
+ .c.o:
+ @echo [Compile] $<
+- @$(CC) -c $(CFLAGS) $< -o $@
++ $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@
+
+ .PHONY: clean
+ clean: