Browse Source

Proper soversion handling

David Lanzendörfer 3 weeks ago
parent
commit
2d67f2ec84
3 changed files with 6 additions and 3 deletions
  1. +1
    -0
      .gitignore
  2. +4
    -2
      Makefile.conf
  3. +1
    -1
      src/Makefile

+ 1
- 0
.gitignore View File

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


+ 4
- 2
Makefile.conf View File

@ -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


+ 1
- 1
src/Makefile View File

@ -30,7 +30,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