[llvm-commits] [llvm] r117528 - /llvm/trunk/tools/llvm-shlib/Makefile

NAKAMURA Takumi geek4civic at gmail.com
Wed Oct 27 23:45:57 PDT 2010


Author: chapuni
Date: Thu Oct 28 01:45:57 2010
New Revision: 117528

URL: http://llvm.org/viewvc/llvm-project?rev=117528&view=rev
Log:
tools/llvm-shlib/Makefile: Support for FreeBSD and OpenBSD.

Thanks to Yuri Gribov and Vladimir Kirillov!
*BSD(s) have environ(7) in CRT startup and cannot resolve "environ" at linking llvm.so.
environ(7) is used inlib/System/Unix/Program.inc.

Modified:
    llvm/trunk/tools/llvm-shlib/Makefile

Modified: llvm/trunk/tools/llvm-shlib/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-shlib/Makefile?rev=117528&r1=117527&r2=117528&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-shlib/Makefile (original)
+++ llvm/trunk/tools/llvm-shlib/Makefile Thu Oct 28 01:45:57 2010
@@ -61,10 +61,13 @@
     endif
 endif
 
-ifeq ($(HOST_OS), Linux)
+ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD OpenBSD))
     # Include everything from the .a's into the shared library.
     LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsOptions) \
                        -Wl,--no-whole-archive
+endif
+
+ifeq ($(HOST_OS),Linux)
     # Don't allow unresolved symbols.
     LLVMLibsOptions += -Wl,--no-undefined
 endif





More information about the llvm-commits mailing list