From: Ian Jackson Date: Sat, 12 Sep 2015 18:45:09 +0000 (+0000) Subject: Makefiles: Honour WIRINGPI_SONAME_SUFFIX X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ae421d4a9ccc09c440d5a30cca6f1a206ffec89d;hp=3ceb07a9a65b4bcbe54a80001522327cfdb9d91d;p=wiringPi.git Makefiles: Honour WIRINGPI_SONAME_SUFFIX This makes it possible for the caller of ./build to add a version number to the sonames of the shared libraries. (This is required for Debian packages.) Signed-off-by: Ian Jackson --- diff --git a/devLib/Makefile b/devLib/Makefile index 38ab9d9..0fb0033 100644 --- a/devLib/Makefile +++ b/devLib/Makefile @@ -66,7 +66,7 @@ $(STATIC): $(OBJ) $(DYNAMIC): $(OBJ) $Q echo "[Link (Dynamic)]" - $Q $(CC) -shared -Wl,-soname,libwiringPiDev.so -o libwiringPiDev.so.$(VERSION) -lpthread $(OBJ) + $Q $(CC) -shared -Wl,-soname,libwiringPiDev.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPiDev.so.$(VERSION) -lpthread $(OBJ) .c.o: $Q echo [Compile] $< diff --git a/wiringPi/Makefile b/wiringPi/Makefile index 5518c9e..6bbcc5d 100644 --- a/wiringPi/Makefile +++ b/wiringPi/Makefile @@ -89,7 +89,7 @@ $(STATIC): $(OBJ) $(DYNAMIC): $(OBJ) $Q echo "[Link (Dynamic)]" - $Q $(CC) -shared -Wl,-soname,libwiringPi.so -o libwiringPi.so.$(VERSION) -lpthread $(OBJ) + $Q $(CC) -shared -Wl,-soname,libwiringPi.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPi.so.$(VERSION) -lpthread $(OBJ) .c.o: $Q echo [Compile] $<