1 --- wiringPi-72b2af231be337d45a557ce6ca3ed1eeb6675ffd.orig/wiringPi/Makefile 2015-02-11 09:58:24.000000000 +0100
2 +++ wiringPi-72b2af231be337d45a557ce6ca3ed1eeb6675ffd/wiringPi/Makefile 2015-02-11 13:29:16.820794439 +0100
4 #################################################################################
6 VERSION=$(shell cat ../VERSION)
13 DYNAMIC=libwiringPi.so.$(VERSION)
21 -CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Winline $(INCLUDE) -pipe -fPIC
22 +CFLAGS ?= $(DEFS) -Wformat=2 -Wall -Winline $(INCLUDE) -fPIC
26 @@ -83,11 +83,12 @@ $(STATIC): $(OBJ)
29 @echo "[Link (Dynamic)]"
30 - @$(CC) -shared -Wl,-soname,libwiringPi.so -o libwiringPi.so.$(VERSION) -lpthread $(OBJ)
31 + $(CC) -shared -Wl,-soname,libwiringPi.so -o libwiringPi.so.$(VERSION) -lpthread $(OBJ)
32 + ln -sf libwiringPi.so.$(VERSION) libwiringPi.so
36 - @$(CC) -c $(CFLAGS) $< -o $@
37 + $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@
41 @@ -110,7 +111,7 @@ install: $(DYNAMIC)
42 @install -m 0755 -d $(DESTDIR)$(PREFIX)/lib
43 @install -m 0755 libwiringPi.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION)
44 @ln -sf $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION) $(DESTDIR)/lib/libwiringPi.so
46 + @ln -sf $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION) $(DESTDIR)/lib/libwiringPi.so.2
48 .PHONY: install-static
49 install-static: $(STATIC)