mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-16 20:41:44 +00:00
2ba37d4b3e
This is how the flag is documented in GNU binutils ld; -Bstatic only applies to -l options after it, until the next -Bdynamic. Differential Revision: https://reviews.llvm.org/D37794 llvm-svn: 313175
22 lines
758 B
Plaintext
22 lines
758 B
Plaintext
RUN: rm -rf %t/lib
|
|
RUN: mkdir -p %t/lib
|
|
RUN: not ld.lld -### -m i386pep -lfoo -L%t/lib 2>&1 | FileCheck -check-prefix=LIB1 %s
|
|
LIB1: unable to find library -lfoo
|
|
|
|
RUN: echo > %t/lib/libfoo.dll.a
|
|
RUN: ld.lld -### -m i386pep -lfoo -L%t/lib | FileCheck -check-prefix=LIB2 %s
|
|
LIB2: libfoo.dll.a
|
|
|
|
RUN: not ld.lld -### -m i386pep -Bstatic -lfoo -L%t/lib 2>&1 | FileCheck -check-prefix=LIB3 %s
|
|
LIB3: unable to find library -lfoo
|
|
|
|
RUN: echo > %t/lib/libfoo.a
|
|
RUN: ld.lld -### -m i386pep -Bstatic -lfoo -L%t/lib | FileCheck -check-prefix=LIB4 %s
|
|
LIB4: libfoo.a
|
|
|
|
RUN: echo > %t/lib/libbar.dll.a
|
|
RUN: echo > %t/lib/libbar.a
|
|
RUN: ld.lld -### -m i386pep -Bstatic -lfoo -Bdynamic -lbar -L%t/lib | FileCheck -check-prefix=LIB5 %s
|
|
LIB5: libfoo.a
|
|
LIB5-SAME: libbar.dll.a
|