Clang '-g' unused warnings in FreeBSD (linking)



Hello.

While this is old "bug" upstream:

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

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

Here,

(FreeBSD clang version 3.1 (branches/release_31 156863) 20120523
Target: x86_64-unknown-freebsd9.0)

Passing -g during linking (which lot's of projects do by
including CFLAGS in linking) I still get

"clang: warning: argument unused during compilation: '-g'"

--
View this message in context: http://freebsd.1045724.n5.nabble.com/Clang-g-unused-warnings-in-FreeBSD-linking-tp5727055.html
Sent from the freebsd-hackers mailing list archive at Nabble.com.
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Clang -g unused warnings in FreeBSD (linking)
    ... Passing -g during linking (which lot's of projects do by ... Regarding the LLVM PRs you mentioned, one could argue that passing '-g' ... Note that historical lddid emited debugging information into ... resulting binary only if -g was specified, so the linker flag is not ...
    (freebsd-hackers)
  • Re: Clang -g unused warnings in FreeBSD (linking)
    ... Passing -g during linking (which lot's of projects do by ... including CFLAGS in linking) I still get ... different parts of the compiler stages ... Regarding the LLVM PRs you mentioned, one could argue that passing '-g' ...
    (freebsd-hackers)
  • Bug in SetDllDirectory?
    ... I should be able to modify the search order for load-time dynamic ... linking by passing a semicolon separated list of paths to ... I can only get this to work when passing a single ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Cant use gprof
    ... $(CFLAGS) which is used for both compile and linking. ... erroneously spelling it as $. ...
    (comp.unix.programmer)