--- src/Makefile.orig 2019-12-26 18:59:41 UTC +++ src/Makefile @@ -73,7 +73,7 @@ endif # Library names. LIBXLSXWRITER_A = libxlsxwriter.a -LIBXLSXWRITER_SO = libxlsxwriter.so +LIBXLSXWRITER_SO = libxlsxwriter.so.0 # Library with additional non-static functions for testing. LIBXLSXWRITER_TO = libxlsxwriter_test.a @@ -83,7 +83,7 @@ ARFLAGS = rc # Flags passed to dynamic linker. FPIC = -fPIC -SOFLAGS = -shared $(FPIC) +SOFLAGS = -shared $(FPIC) -Wl,-soname=${LIBXLSXWRITER_SO} # Get Env/OS name. UNAME := $(shell uname) @@ -135,11 +135,11 @@ $(LIBXLSXWRITER_A) : $(OBJS) # The dynamic library. ifeq ($(findstring m32,$(CFLAGS)),m32) -ARCH = -m32 +XSLX_ARCH = -m32 endif $(LIBXLSXWRITER_SO) : $(SOBJS) - $(Q)$(CC) $(LDFLAGS) $(SOFLAGS) $(ARCH) -o $@ $(MINIZIP_SO) $(TMPFILEPLUS_SO) $(MD5_SO) $^ $(LIBS) + $(Q)$(CC) $(LDFLAGS) $(SOFLAGS) $(XSLX_ARCH) -o $@ $(MINIZIP_SO) $(TMPFILEPLUS_SO) $(MD5_SO) $^ $(LIBS) # The test library. $(LIBXLSXWRITER_TO) : $(TOBJS)