Skip to content

Commit 82cd23f

Browse files
giordanostaticfloat
authored andcommitted
Use major version of the library in the soname
This avoids breaking the ABI in every single version.
1 parent e7e6935 commit 82cd23f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Make.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ else ifeq ($(OS), Darwin)
4040

4141
LIB_FULL_VERSION := libblastrampoline.$(LBT_SOVERSION_MAJOR).$(LBT_SOVERSION_MINOR).$(LBT_SOVERSION_PATCH).dylib
4242
LIB_MAJOR_VERSION := libblastrampoline.$(LBT_SOVERSION_MAJOR).dylib
43-
SONAME_FLAG := -Wl,-install_name=@rpath/$(LIB_FULL_VERSION)
43+
SONAME_FLAG := -Wl,-install_name=@rpath/$(LIB_MAJOR_VERSION)
4444
else
4545
SHLIB_EXT := so
4646
binlib := lib
4747

4848
LIB_FULL_VERSION := libblastrampoline.so.$(LBT_SOVERSION_MAJOR).$(LBT_SOVERSION_MINOR).$(LBT_SOVERSION_PATCH)
4949
LIB_MAJOR_VERSION := libblastrampoline.so.$(LBT_SOVERSION_MAJOR)
50-
SONAME_FLAG := -Wl,-soname=$(LIB_FULL_VERSION)
50+
SONAME_FLAG := -Wl,-soname=$(LIB_MAJOR_VERSION)
5151
endif
5252

5353
LBT_CFLAGS := -g -O2 -std=c99 -fPIC -DLIBRARY_EXPORTS -D_GNU_SOURCE $(CFLAGS) $(SONAME_FLAG)

0 commit comments

Comments
 (0)