[LLVMbugs] [Bug 3094] New: ccc wrong order of linker flags
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Nov 18 04:53:51 PST 2008
http://llvm.org/bugs/show_bug.cgi?id=3094
Summary: ccc wrong order of linker flags
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Basic
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
$ CCC_ECHO=1 ccc foo.c -lcheck
clang -emit-llvm-bc foo.c -o foo.o.bc
llc -relocation-model=pic -f -o foo.o.s foo.o.bc
as -o foo.o foo.o.s
c++ -o a.out -lcheck foo.o
foo.o: In function 'main'
(.text+0x11): undefined reference to 'srunner_create'
It should be:
$ c++ -o a.out foo.o -lcheck
Which builds a.out successfully.
--
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