mirror of https://gitlab.com/ita1024/waf.git
Merge branch 'versioned_so' into 'master'
Support versioned shared libraries See merge request ita1024/waf!2270
This commit is contained in:
commit
0eb67307f6
|
@ -107,6 +107,8 @@ def parse_flags(self, line, uselib_store, env=None, force_static=False, posix=No
|
|||
lex.commenters = ''
|
||||
lst = list(lex)
|
||||
|
||||
so_re = re.compile(r"\.so(?:\.[0-9]+)*$")
|
||||
|
||||
# append_unique is not always possible
|
||||
# for example, apple flags may require both -arch i386 and -arch ppc
|
||||
uselib = uselib_store
|
||||
|
@ -184,7 +186,7 @@ def parse_flags(self, line, uselib_store, env=None, force_static=False, posix=No
|
|||
app('CFLAGS', tmp)
|
||||
app('CXXFLAGS', tmp)
|
||||
app('LINKFLAGS', tmp)
|
||||
elif x.endswith(('.a', '.so', '.dylib', '.lib')):
|
||||
elif x.endswith(('.a', '.dylib', '.lib')) or so_re.search(x):
|
||||
appu('LINKFLAGS', x) # not cool, #762
|
||||
else:
|
||||
self.to_log('Unhandled flag %r' % x)
|
||||
|
|
Loading…
Reference in New Issue