[Lldb-commits] [lldb] r204603 - Use --whole-archive linker option for minw too.

Hafiz Abid Qadeer hafiz_abid at mentor.com
Mon Mar 24 06:44:52 PDT 2014


Author: abidh
Date: Mon Mar 24 08:44:52 2014
New Revision: 204603

URL: http://llvm.org/viewvc/llvm-project?rev=204603&view=rev
Log:
Use --whole-archive linker option for minw too.
It is already used for Linux and FreeBSD. 

Modified:
    lldb/trunk/lib/Makefile

Modified: lldb/trunk/lib/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lib/Makefile?rev=204603&r1=204602&r2=204603&view=diff
==============================================================================
--- lldb/trunk/lib/Makefile (original)
+++ lldb/trunk/lib/Makefile Mon Mar 24 08:44:52 2014
@@ -127,6 +127,9 @@ include $(LEVEL)/Makefile.common
 
 ifeq ($(HOST_OS),MingW)
     LLVMLibsOptions += -lws2_32
+    # Include everything from the .a's into the shared library.
+    ProjLibsOptions := -Wl,--whole-archive $(ProjLibsOptions) \
+                       -Wl,--no-whole-archive
 endif
 
 ifeq ($(HOST_OS),Darwin)





More information about the lldb-commits mailing list