[LLVMbugs] [Bug 8213] New: Who understands -Z-reserved-lib-stdc++ on linker driver?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Sep 23 07:07:29 PDT 2010


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

           Summary: Who understands -Z-reserved-lib-stdc++ on linker
                    driver?
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: geek4civic at gmail.com
                CC: llvmbugs at cs.uiuc.edu


On building clang/cygwin stage2 with enable_shared, I met below;

$ /path/to/clang++.exe -nostartfiles -Wl,-r -nodefaultlibs -o stdc++.a.o
-Wl,--whole-archive -lstdc++ -Wl,--no-whole-archive
g++: unrecognized option '-Z-reserved-lib-stdc++'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: no input
fi
les
collect2: ld returned 1 exit status
clang: error: linker (via gcc) command failed with exit code 1 (use -v to see
in
vocation)

It works better when I suppressed options::OPT_Z_reserved_lib_stdcxx in
lib/Driver/Driver.cpp. (It detects -nostdlib -lstdc++.) Would it be better to
check target's triplet?

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list