Fix build for darwin
authorJon TURNEY <jon.turney@dronecode.org.uk>
Sun, 11 May 2014 13:38:52 +0000 (14:38 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Fri, 23 May 2014 14:24:01 +0000 (15:24 +0100)
commitff90a8784cf22ada7bba75f90460b063818abda7
treec9c83e89685a4925acdbc7158d39995fa0bff445
parente0372239a5b716de21b5f4c7a4a7d8b4a74a51cb
Fix build for darwin

Fix build for darwin, when ./configured --disable-driglx-direct

- darwin ld doesn't support -Bsymbolic or --version-script, so check if ld
supports those options before using them
- define GLX_ALIAS_UNSUPPORTED as config/darwin used to, as aliasing of non-weak
symbols isn't supported
- default to -with-dri-drivers=swrast

v2:
Use -Wl,-Bsymbolic, as before, not -Bsymbolic
Test that ld --version-script works, rather than just looking for it in ld --help
Don't use -Wl,--no-undefined on darwin, either

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
configure.ac
src/egl/main/Makefile.am
src/gallium/Automake.inc
src/gallium/targets/egl-static/Makefile.am
src/gallium/targets/gbm/Makefile.am
src/gallium/targets/opencl/Makefile.am
src/gallium/targets/pipe-loader/Makefile.am
src/glx/Makefile.am
src/mesa/drivers/dri/Makefile.am