Ticket #26107: patch-INCHI-1-API_INCHI_API_gcc_so_makefile-makefile.diff

File patch-INCHI-1-API_INCHI_API_gcc_so_makefile-makefile.diff, 1.1 KB (added by petri@…, 14 years ago)

files/patch-INCHI-1-API_INCHI_API_gcc_so_makefile-makefile.diff

  • INCHI-1-API/INCHI_API/gcc_so_makefile/makefile

    old new  
    11# Comment out the next line to create so/dll only
    2 CREATE_MAIN = 1
     2#CREATE_MAIN = 1
    33
    44ifdef windir
    55# Under Win32/MinGW/gcc to add functions compliant to Pascal/stdcall calling
     
    1919# In addition, inchi.map restricts set of expoorted from .so
    2020# functions to those which belong to InChI API
    2121ifndef windir
    22 LINUX_MAP = ,--version-script=libinchi.map
    2322ifdef ISLINUX
     23LINUX_MAP = ,--version-script=libinchi.map
    2424LINUX_FPIC  = -fPIC
    2525LINUX_Z_RELRO = ,-z,relro
     26LINUX_SONAME = ,-soname,
    2627endif
    2728endif
    2829
     
    213214        $(SHARED_LINK) $(SHARED_LINK_PARM) -o \
    214215  $(INCHI_LIB_PATHNAME).so$(VERSION) \
    215216  $(INCHI_LIB_OBJS) \
    216   -Wl$(LINUX_MAP)$(LINUX_Z_RELRO),-soname,$(INCHI_LIB_NAME).so$(MAIN_VERSION)
     217  -Wl$(LINUX_MAP)$(LINUX_Z_RELRO)$(LINUX_SONAME)$(INCHI_LIB_NAME).so$(MAIN_VERSION)
    217218        ln -fs $(INCHI_LIB_NAME).so$(VERSION) \
    218219  $(INCHI_LIB_PATHNAME).so$(MAIN_VERSION)
    219220