[LLVMbugs] [Bug 19186] New: The included lib/buildit script needlessly tries to link to libstdc++

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 19 05:03:58 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19186

            Bug ID: 19186
           Summary: The included lib/buildit script needlessly tries to
                    link to libstdc++
           Product: libc++abi
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: georgid at outlook.com
                CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
    Classification: Unclassified

The buildit script add the following link flag which is not needed and breaks
building libcxxabi in an environment without a gcc toolchain.
 -lstdc++


I was able to successfully build libcxxabi after applying the following patch:

diff --git a/lib/buildit b/lib/buildit
index 5a4a710..6e76e3b 100755
--- a/lib/buildit
+++ b/lib/buildit
@@ -70,7 +70,7 @@ case $TRIPLE in
     SOEXT=so
     LDSHARED_FLAGS="-o libc++abi.so.1.0 \
         -shared -nodefaultlibs -Wl,-soname,libc++abi.so.1 \
-        -lpthread -lrt -lc -lstdc++"
+        -lpthread -lrt -lc"
     ;;
 esac

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140319/26e8bd21/attachment.html>


More information about the llvm-bugs mailing list