chiark / gitweb /
Makefiles: Honour WIRINGPI_SONAME_SUFFIX
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 12 Sep 2015 18:45:09 +0000 (18:45 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 12 Sep 2015 19:38:20 +0000 (20:38 +0100)
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 <ijackson@chiark.greenend.org.uk>
devLib/Makefile
wiringPi/Makefile

index 38ab9d9cd164fd24bae91aeaa95e954cf4fc3509..0fb00336f7e1873af49df46d166ddf105355ec65 100644 (file)
@@ -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] $<
index 5518c9e50ab687fb029b31113b1595e8de7de2b0..6bbcc5d54e357928686de250bc01653258ec70ec 100644 (file)
@@ -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] $<