Ticket #19114: patch-src-Sconscript.diff

File patch-src-Sconscript.diff, 668 bytes (added by dbsgeo@…, 16 years ago)

install_name patch to allow libmapnik.dylib to be found by python bindings without setting DYLD_LIBRARY_PATH

  • src/SConscript

     
    3131
    3232install_prefix = env['DESTDIR'] + '/' + prefix
    3333
     34libdir = os.path.normpath(prefix + '/' + env['LIBDIR_SCHEMA'])
     35
    3436libraries = env['LIBS']
    3537
    3638if env['INTERNAL_LIBAGG']:
    3739    libraries.insert(0, 'agg')
    3840
    3941if env['PLATFORM'] == 'Darwin':
    40     linkflags = '-Wl,-install_name,libmapnik.dylib'
     42    linkflags = '-Wl,-install_name,%s/libmapnik.dylib' % libdir
    4143elif env['PLATFORM'] == 'SunOS' and env['CXX'].startswith('CC'):
    4244    linkflags = '-R. -h libmapnik.so'
    4345else: # Linux and others