Oops. Pass -lgcc _only_ on ARM, not on everything except ARM.
authorJeffrey Yasskin <jyasskin@google.com>
Tue, 23 Feb 2010 18:40:48 +0000 (18:40 +0000)
committerJeffrey Yasskin <jyasskin@google.com>
Tue, 23 Feb 2010 18:40:48 +0000 (18:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96965 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-shlib/Makefile

index fd8a107c4733935e2f26d71a2b5683dbf348195a..ae0924402b0b43b53f9507777c5fbd7ae02bfc1e 100644 (file)
@@ -58,7 +58,7 @@ ifeq ($(HOST_OS), Linux)
     LLVMLibsOptions += -Wl,--warn-shared-textrel
     # Don't allow unresolved symbols.
     LLVMLibsOptions += -Wl,--no-undefined
-    ifneq ($(ARCH), ARM)
+    ifeq ($(ARCH), ARM)
         # ARM's shared libgcc omits several of the __sync functions that are
         # present in the static libgcc, so we also link in the static gcc.  This
         # is described at http://gcc.gnu.org/PR40133.