diff options
author | Ctibor Brančík <ctibor@brancik.cz> | 2018-07-30 20:38:03 +0200 |
---|---|---|
committer | Ctibor Brančík <ctibor@brancik.cz> | 2018-07-30 20:38:03 +0200 |
commit | 6ee032c972419830c1cfff2369e7661a620971cc (patch) | |
tree | 6ac91ffa21e1d5ee02070a9f145f33894a086ad0 /dev-libs/wiringPi/files/devLib_Makefile.patch | |
parent | 15a76113ec79f544a88acd5c13e66956027c5476 (diff) | |
download | brancik-overlay-6ee032c972419830c1cfff2369e7661a620971cc.tar.gz brancik-overlay-6ee032c972419830c1cfff2369e7661a620971cc.tar.bz2 |
Revert "Remove old version of wiringPi"
This reverts commit 15a76113ec79f544a88acd5c13e66956027c5476.
Diffstat (limited to 'dev-libs/wiringPi/files/devLib_Makefile.patch')
-rw-r--r-- | dev-libs/wiringPi/files/devLib_Makefile.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-libs/wiringPi/files/devLib_Makefile.patch b/dev-libs/wiringPi/files/devLib_Makefile.patch new file mode 100644 index 0000000..27b5dd5 --- /dev/null +++ b/dev-libs/wiringPi/files/devLib_Makefile.patch @@ -0,0 +1,29 @@ +--- devLib/Makefile 2013-08-04 00:53:35.000000000 +0200 ++++ devLib/Makefile 2014-05-13 00:53:20.364314712 +0200 +@@ -33,7 +33,7 @@ + #DEBUG = -g -O0 + DEBUG = -O2 + CC = gcc +-INCLUDE = -I. ++INCLUDE = -I. -I../wiringPi + CFLAGS = $(DEBUG) -Wformat=2 -Wall $(INCLUDE) -Winline -pipe -fPIC + + LIBS = +@@ -94,8 +94,7 @@ + @echo "[Install Dynamic Lib]" + @install -m 0755 -d $(DESTDIR)$(PREFIX)/lib + @install -m 0755 libwiringPiDev.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so.$(VERSION) +- @ln -sf $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so.$(VERSION) $(DESTDIR)/lib/libwiringPiDev.so +- @ldconfig ++ @ln -sf --relative $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so.$(VERSION) $(DESTDIR)/lib/libwiringPiDev.so + + .PHONEY: install-static + install-static: $(STATIC) install-headers +@@ -115,7 +114,6 @@ + @rm -f $(DESTDIR)$(PREFIX)/include/lcd.h + @rm -f $(DESTDIR)$(PREFIX)/include/piGlow.h + @rm -f $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.* +- @ldconfig + + + .PHONEY: depend |