--- INCHI_API/gcc_so_makefile/makefile.orig 2010-08-16 19:06:23.000000000 +0200 +++ INCHI_API/gcc_so_makefile/makefile 2010-08-16 19:06:47.000000000 +0200 @@ -1,5 +1,5 @@ # Comment out the next line to create so/dll only -CREATE_MAIN = 1 +#CREATE_MAIN = 1 ifdef windir # Under Win32/MinGW/gcc to add functions compliant to Pascal/stdcall calling @@ -19,10 +19,11 @@ # In addition, inchi.map restricts set of expoorted from .so # functions to those which belong to InChI API ifndef windir -LINUX_MAP = ,--version-script=libinchi.map ifdef ISLINUX +LINUX_MAP = ,--version-script=libinchi.map LINUX_FPIC = -fPIC LINUX_Z_RELRO = ,-z,relro +LINUX_SONAME = ,-soname, endif endif @@ -213,7 +214,7 @@ $(SHARED_LINK) $(SHARED_LINK_PARM) -o \ $(INCHI_LIB_PATHNAME).so$(VERSION) \ $(INCHI_LIB_OBJS) \ - -Wl$(LINUX_MAP)$(LINUX_Z_RELRO),-soname,$(INCHI_LIB_NAME).so$(MAIN_VERSION) + -Wl$(LINUX_MAP)$(LINUX_Z_RELRO)$(LINUX_SONAME)$(INCHI_LIB_NAME).so$(MAIN_VERSION) ln -fs $(INCHI_LIB_NAME).so$(VERSION) \ $(INCHI_LIB_PATHNAME).so$(MAIN_VERSION)