File: tool.py

package info (click to toggle)
xmms2 0.5DrLecter-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 6,988 kB
  • ctags: 11,272
  • sloc: ansic: 51,389; cpp: 26,556; python: 11,479; perl: 202; ruby: 138; makefile: 100; asm: 7; sh: 4
file content (10 lines) | stat: -rw-r--r-- 345 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
import os
from Params import g_platform

def add_install_flag(bld, obj):
    env = bld.env()

    if env['explicit_install_name']:
        libname = obj.env["shlib_PREFIX"]+obj.target+obj.env["shlib_SUFFIX"]
        insname = os.path.join(obj.env["PREFIX"], 'lib', libname)
        obj.env.append_unique("LINKFLAGS", '-install_name ' + insname)