Ticket #36693: patch-configure.diff

File patch-configure.diff, 1.2 KB (added by s_lessard@…, 12 years ago)
  • configure

    old new  
    30463046        add_extralibs -lpoll -lgnugetopt
    30473047        strip="strip -d"
    30483048        ;;
    30493049    darwin)
    30503050        gas="gas-preprocessor.pl $cc"
    30513051        enabled ppc && add_asflags -force_cpusubtype_ALL
    3052         SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME_WITH_MAJOR),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR)'
     3052        build_os_ver=$(uname -r)
     3053        if test ${build_os_ver:0:1} = 8; then
     3054                SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME_WITH_MAJOR),-current_version,$(LIBVERSION)'
     3055        else
     3056                SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME_WITH_MAJOR),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR)'
     3057        fi
    30533058        enabled x86_32 && append SHFLAGS -Wl,-read_only_relocs,suppress
    30543059        strip="${strip} -x"
    30553060        add_ldflags -Wl,-dynamic,-search_paths_first
    30563061        SLIBSUF=".dylib"
    30573062        SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME).$(LIBVERSION)$(SLIBSUF)'
    30583063        SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME).$(LIBMAJOR)$(SLIBSUF)'