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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs