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.
Looks good to me. I'll commit it soon.
on Aug 28, 2016 at 10:21:18.
(provided by the Example extension).