[Poppler-bugs] [Bug 76963] I can't build poppler with Clang

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jul 24 15:19:23 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=76963

--- Comment #4 from Daniel Macks <dmacks at netspace.org> ---
The boilerplate for this sort of autoconf check is something like:


saved_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="-fno-check-new $CXXFLAGS"
AC_MSG_CHECKING([for -fno-check-new compiler flag])
AC_TRY_COMPILE([], [int main (void) { return 0; }],
  AC_MSG_RESULT([yes]),
  AC_MSG_RESULT([no])
  CXXFLAGS="$saved_CXXFLAGS"
])


Obviously could extract this result into a temp variable first and concat into
the larger CXXFLAGS assignments in the relevant case/esac sections rather than
having the test itself leave the result in the live variable.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20140724/5ecd11d8/attachment.html>


More information about the Poppler-bugs mailing list