Ticket #29327: soname_linkage.diff

File soname_linkage.diff, 748 bytes (added by howarth@…, 14 years ago)

soname linkage patch to adopt fink approach

  • config/Makefile.darwin

    old new  
    1515WARN = -Wall -W
    1616POPT = -O2
    1717BIN.SUFFIX =
    18 LIB.SONAME    = lib$(NAME).$(SO_MAJOR).dylib
     18LIB.SONAME    = lib$(NAME).$(GLEW_MAJOR).dylib
    1919LIB.DEVLNK    = lib$(NAME).dylib
    2020LIB.SHARED    = lib$(NAME).$(SO_VERSION).dylib
    2121LIB.STATIC    = lib$(NAME).a
    22 LDFLAGS.SO    = -dynamiclib -install_name $(GLEW_DEST)/lib/$(LIB.SHARED)
     22LDFLAGS.SO    = -dynamiclib -install_name $(GLEW_DEST)/lib/$(LIB.SONAME) -current_version $(SO_VERSION) -compatibility_version $(SO_MAJOR)
    2323LIB.SONAME.MX = lib$(NAME)mx.$(SO_MAJOR).dylib
    2424LIB.DEVLNK.MX = lib$(NAME)mx.dylib
    2525LIB.SHARED.MX = lib$(NAME)mx.$(SO_VERSION).dylib