Ticket #44068: patch-SConstruct.diff

File patch-SConstruct.diff, 1.2 KB (added by djlambe11@…, 10 years ago)
  • SConstruct

    old new  
    210210# Unfortunately we can't set the .dylib compatibility_version option separately
    211211# from current_version, so don't use the PATCH level to avoid that build and
    212212# runtime patch levels have to be identical.
    213 env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
     213
     214# MacPorts: change PATCH to 0 when MINOR goes from 3 to 4.
     215env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, PATCH)
    214216
    215217LIBNAME = 'libserf-%d' % (MAJOR,)
    216218if sys.platform != 'win32':
     
    222224           PDB='${TARGET.filebase}.pdb')
    223225
    224226if sys.platform == 'darwin':
    225 #  linkflags.append('-Wl,-install_name,@executable_path/%s.dylib' % (LIBNAME,))
    226   env.Append(LINKFLAGS='-Wl,-install_name,%s/%s.dylib' % (thisdir, LIBNAME,))
     227# MacPorts: ld on Tiger (at least) uses -dylib_install_name as its option.
     228#  linkflags.append('-Wl,-dylib_install_name,@executable_path/%s.dylib' % (LIBNAME,))
     229  env.Append(LINKFLAGS='-Wl,-dylib_install_name,%s/%s.dylib' % (thisdir, LIBNAME,))
    227230
    228231if sys.platform != 'win32':
    229232  ### gcc only. figure out appropriate test / better way to check these