This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
libffi build issues with Sun Studio 12 compiler
- From: Ginn Chen <Ginn dot Chen at Sun dot COM>
- To: libffi-discuss at sourceware dot org
- Date: Mon, 12 Oct 2009 20:41:17 +0800
- Subject: libffi build issues with Sun Studio 12 compiler
Hi,
I got some build issues of libffi inside mozilla-central with Sun
Studio 12 compiler on OpenSolaris.
The problems are described at
https://bugzilla.mozilla.org/show_bug.cgi?id=519401#c4
1) -Wall, -fexceptions are not valid for Sun Studio compiler.
2) In ffitarget.h, Sun Studio doesn't define __i386__ and __x86_64__.
We can add || defined(__i386) and || defined (__x86_64).
3) ffi_common.h
FFI_ASSERT_AT should use (void)0.
I would like to ask advices for problem 1).
What should we do for AM_CFLAGS in Makefile.in?
What's the best way to handle it?
Thanks,
Ginn