Re: [petsc-dev] Need a CFLAGS that does is *not* included in the link
On Thu, May 24, 2012 at 10:09 PM, Jed Brown <[email protected]> wrote:
Building PETSc with clang++ produces a warning about compiling *.c as C++ being deprecated. To silence the warning, we would need to pass "-x c++" to the compiler, but NOT to the linker. CFLAGS is currently also passed to the linker. Is this something we want to fix?
According to autoconf, CFLAGS goes with both. CPPFLAGS is only for the compiler. Matt
Clang used to SEGV when "-x c++" is passed to the linker. Now (latest SVN) it just interprets the object file as C++ source (which obviously produces a ton of garbage).
-- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener
participants (1)
-
Matthew Knepley