USE_TOP_LEVEL = False
+def is_standard_libpath(env, path):
+ for _path in env.STANDARD_LIBPATH:
+ if _path == os.path.normpath(path):
+ return True
+ return False
+
def get_cc_version(conf, cc, gcc=False, icc=False):
cmd = cc + ['-dM', '-E', '-']
v.append_value('LINKFLAGS', v['FULLSTATIC_MARKER'])
for i in v['RPATH']:
+ if is_standard_libpath(v, i):
+ continue
if i and rpath_st:
app('LINKFLAGS', rpath_st % i)
for i in v['LIBPATH']:
+ if is_standard_libpath(v, i):
+ continue
app('LINKFLAGS', libpath_st % i)
app('LINKFLAGS', staticlibpath_st % i)