Bug 32859 - Mesa doesn't compile under NetBSD
Summary: Mesa doesn't compile under NetBSD
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: x86-64 (AMD64) NetBSD
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-05 14:40 UTC by Pierre Allegraud
Modified: 2011-01-06 06:59 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Fixes for NetBSD support (2.98 KB, patch)
2011-01-05 14:40 UTC, Pierre Allegraud
Details | Splinter Review

Description Pierre Allegraud 2011-01-05 14:40:45 UTC
Created attachment 41692 [details] [review]
Fixes for NetBSD support

Mesa's build system doesn't support NetBSD.

Under NetBSD-current :
./configure && gmake fails.

1) configure disable dri and asm optimizations by default
2) configure add "-ansi -pedantic" to CXXFLAGS, and thus break a lot of compilations. (-ansi -pedantic is only added for *BSDs CXXFLAGS, why ?)
3) mklib builds libfoo_pic.a, while Makefiles expect libfoo.a
4) in src/mesa/drivers/dri/mach64/mach64_context.h, machine/endian.h is included for OpenBSD, but not for NetBSD

The following trivial patch should fix these issues.
Comment 1 Brian Paul 2011-01-06 06:59:49 UTC
Looks good to me.  I'll commit it soon.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.