Proper soversion handling

David Lanzendörfer 1 year ago
parent a965e071c2
commit ac7f7144b5

1
.gitignore vendored

@ -1,6 +1,7 @@
*.o
*.a
*.so
*.so.*
*.d
*.swp
.DS_Store

@ -7,13 +7,15 @@ HERE:=$(dir $(lastword $(MAKEFILE_LIST)))
BUILD_ON:=$(shell uname)
SOVERSION=2.1.22
ifeq ($(BUILD_ON),OS/390)
TARGETS=libpEpAdapter.a libpEpAdapter.so
SO_CFLAGS = -W "l,xplink,dll" -W "c,float(ieee),xplink,dll,exportall"
CPPFLAGS += -W "l,xplink,dll" -W "c,float(ieee),xplink,dll,exportall"
else ifeq ($(BUILD_ON),Linux)
TARGETS=libpEpAdapter.a libpEpAdapter.so
SO_CFLAGS = -shared -Wl,-soname,libpEpAdapter.so.1
TARGETS=libpEpAdapter.a libpEpAdapter.so.$(SOVERSION)
SO_CFLAGS = -shared -Wl,-soname,libpEpAdapter.so.$(SOVERSION)
else
TARGETS=libpEpAdapter.a
endif

@ -31,7 +31,7 @@ endif
libpEpAdapter.a: $(OBJECTS)
$(AR) -rc $@ $^
libpEpAdapter.so: $(OBJECTS)
libpEpAdapter.so.$(SOVERSION): $(OBJECTS)
$(CXX) $(SO_CFLAGS) -o $@ $^ $(LDLIBS) -lpEpEngine -lpEpMIME -lsequoia_ffi -lsequoia_openpgp_ffi
all: $(TARGETS)

Loading…
Cancel
Save