SConstruct (13706:4c1d26d1766e) | SConstruct (13713:cd0c57cd48f7) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2013, 2015-2017 ARM Limited 4# All rights reserved. 5# 6# The license below extends only to copyright in the software and shall 7# not be construed as granting a license to any other intellectual 8# property including but not limited to intellectual property relating --- 1076 unchanged lines hidden (view full) --- 1085 relpath = os.path.relpath(target.abspath, env['BUILDDIR']) 1086 components = [ 1087 '\\$$ORIGIN', 1088 '${BIN_RPATH_PREFIX}', 1089 relpath 1090 ] 1091 env.Append(RPATH=[env.Literal(os.path.join(*components))]) 1092 | 1# -*- mode:python -*- 2 3# Copyright (c) 2013, 2015-2017 ARM Limited 4# All rights reserved. 5# 6# The license below extends only to copyright in the software and shall 7# not be construed as granting a license to any other intellectual 8# property including but not limited to intellectual property relating --- 1076 unchanged lines hidden (view full) --- 1085 relpath = os.path.relpath(target.abspath, env['BUILDDIR']) 1086 components = [ 1087 '\\$$ORIGIN', 1088 '${BIN_RPATH_PREFIX}', 1089 relpath 1090 ] 1091 env.Append(RPATH=[env.Literal(os.path.join(*components))]) 1092 |
1093main.Append(LINKFLAGS=Split('-z origin')) | 1093if sys.platform != "darwin": 1094 main.Append(LINKFLAGS=Split('-z origin')) 1095 |
1094main.AddMethod(add_local_rpath, 'AddLocalRPATH') 1095 1096# builds in ext are shared across all configs in the build root. 1097ext_dir = abspath(joinpath(str(main.root), 'ext')) 1098ext_build_dirs = [] 1099for root, dirs, files in os.walk(ext_dir): 1100 if 'SConscript' in files: 1101 build_dir = os.path.relpath(root, ext_dir) --- 181 unchanged lines hidden --- | 1096main.AddMethod(add_local_rpath, 'AddLocalRPATH') 1097 1098# builds in ext are shared across all configs in the build root. 1099ext_dir = abspath(joinpath(str(main.root), 'ext')) 1100ext_build_dirs = [] 1101for root, dirs, files in os.walk(ext_dir): 1102 if 'SConscript' in files: 1103 build_dir = os.path.relpath(root, ext_dir) --- 181 unchanged lines hidden --- |