Ticket #44068: patch-SConstruct.diff
File patch-SConstruct.diff, 1.2 KB (added by djlambe11@…, 10 years ago) |
---|
-
SConstruct
old new 210 210 # Unfortunately we can't set the .dylib compatibility_version option separately 211 211 # from current_version, so don't use the PATCH level to avoid that build and 212 212 # 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. 215 env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, PATCH) 214 216 215 217 LIBNAME = 'libserf-%d' % (MAJOR,) 216 218 if sys.platform != 'win32': … … 222 224 PDB='${TARGET.filebase}.pdb') 223 225 224 226 if 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,)) 227 230 228 231 if sys.platform != 'win32': 229 232 ### gcc only. figure out appropriate test / better way to check these