How do I force the use of static libraries?

4 views
Skip to first unread message

Matt Jones

unread,
Aug 26, 2010, 7:34:58 PM8/26/10
to LDC - the LLVM D compiler
I'm running Linux with both static and dynamic versions of PCRE
installed. However I can only link against the dynamic version of the
libraries. How do I tell LDC to link with the static versions?

For example, in GCC I can force static with "-static":
gcc -o main -g -Wall -Werror main.c -static -lpcre

On LDC I can only try this:
ldc -g -w main.d -L="-static -lpcre"

Any help would be great.
Reply all
Reply to author
Forward
0 new messages