瀏覽代碼

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 <ijackson@chiark.greenend.org.uk>
pull/62/head
Ian Jackson 9 年之前
父節點
當前提交
ae421d4a9c
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      devLib/Makefile
  2. +1
    -1
      wiringPi/Makefile

+ 1
- 1
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] $<


+ 1
- 1
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] $<


Loading…
取消
儲存