@@ -223,7 +223,7 @@ def __init__(self, inputList, exactMatches={}, patternMatches={}):
223
223
#
224
224
# Patterns for other command-line arguments:
225
225
# - inputFiles
226
- # - objecFiles (suffix .o)
226
+ # - objectFiles (suffix .o)
227
227
# - libraries + linker options as in -lxxx -Lpath or -Wl,xxxx
228
228
# - preprocessor options as in -DXXX -Ipath
229
229
# - compiler warning options: -W....
@@ -233,7 +233,10 @@ def __init__(self, inputList, exactMatches={}, patternMatches={}):
233
233
r'^.+\.(c|cc|cpp|C|cxx|i|s|S)$' : (0 , ArgumentListFilter .inputFileCallback ),
234
234
#iam: the object file recogition is not really very robust, object files
235
235
# should be determined by their existance and contents...
236
- r'^.+\.(o|lo|So|so|po|a)$' : (0 , ArgumentListFilter .objectFileCallback ),
236
+ r'^.+\.(o|lo|So|so|po|a|dylib)$' : (0 , ArgumentListFilter .objectFileCallback ),
237
+ #iam: library.so.4.5.6 probably need a similar pattern for .dylib too.
238
+ r'^.+\.dylib(\.\d)+$' : (0 , ArgumentListFilter .objectFileCallback ),
239
+ r'^.+\.(So|so)(\.\d)+$' : (0 , ArgumentListFilter .objectFileCallback ),
237
240
r'^-(l|L).+$' : (0 , ArgumentListFilter .linkUnaryCallback ),
238
241
r'^-I.+$' : (0 , ArgumentListFilter .compileUnaryCallback ),
239
242
r'^-D.+$' : (0 , ArgumentListFilter .compileUnaryCallback ),
0 commit comments