diff --git a/Jamrules b/Jamrules index 3361e14001..a45ea1c560 100644 --- a/Jamrules +++ b/Jamrules @@ -856,11 +856,12 @@ rule LinkSharedOSLibs # XXX: _APP_ and _KERNEL_ should not be needed for ELF. case _APP_ : isfile = true ; case _KERNEL_ : isfile = true ; - case *.so : isfile = true ; - case *.a : isfile = true ; case lib* : isfile = true ; case * : isfile = ; } + if ! $(isfile) && ( $(i:S) = .so || $(i:S) = .a ) { + isfile = true ; + } } if $(isfile) { NEEDLIBS on $(1) = [ on $(1) return $(NEEDLIBS) ] $(i) ;