diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2014-12-17 07:27:01 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2014-12-17 07:27:01 +0100 |
commit | a07e197d7552bed16d7c9bf428d4a43a3f458a23 (patch) | |
tree | da39ede4c33e62e1124ffd15d27c41cbe1c1f64c /package/wiringPi/patches/patch-devLib_Makefile | |
parent | 753383bdf29033a1c7244e31c42c2f5d9906010f (diff) | |
parent | f91c0a6d288596bf002df4f750ab77e0c241e924 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/wiringPi/patches/patch-devLib_Makefile')
-rw-r--r-- | package/wiringPi/patches/patch-devLib_Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/package/wiringPi/patches/patch-devLib_Makefile b/package/wiringPi/patches/patch-devLib_Makefile new file mode 100644 index 000000000..8fa24bcc1 --- /dev/null +++ b/package/wiringPi/patches/patch-devLib_Makefile @@ -0,0 +1,30 @@ + fix upstream Makefile + +--- wiringPi-0.1.orig/devLib/Makefile 2014-12-05 14:48:57.000000000 +0100 ++++ wiringPi-0.1/devLib/Makefile 2014-12-05 15:35:35.470864970 +0100 +@@ -32,9 +32,9 @@ DYNAMIC=libwiringPiDev.so.$(VERSION) + + #DEBUG = -g -O0 + DEBUG = -O2 +-CC = gcc ++CC ?= gcc + INCLUDE = -I. +-CFLAGS = $(DEBUG) -Wformat=2 -Wall $(INCLUDE) -Winline -pipe -fPIC ++CFLAGS ?= -Wformat=2 -Wall $(INCLUDE) -Winline -pipe -fPIC + + LIBS = + +@@ -59,11 +59,11 @@ $(STATIC): $(OBJ) + + $(DYNAMIC): $(OBJ) + @echo "[Link (Dynamic)]" +- @$(CC) -shared -Wl,-soname,libwiringPiDev.so -o libwiringPiDev.so.$(VERSION) -lpthread $(OBJ) ++ $(CC) -shared -Wl,-soname,libwiringPiDev.so -o libwiringPiDev.so.$(VERSION) -lpthread $(OBJ) + + .c.o: + @echo [Compile] $< +- @$(CC) -c $(CFLAGS) $< -o $@ ++ $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@ + + .PHONY: clean + clean: |