summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2014-05-11 14:38:52 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2014-05-23 15:24:01 +0100
commitff90a8784cf22ada7bba75f90460b063818abda7 (patch)
treec9c83e89685a4925acdbc7158d39995fa0bff445 /src/glx
parente0372239a5b716de21b5f4c7a4a7d8b4a74a51cb (diff)
downloadexternal_mesa3d-ff90a8784cf22ada7bba75f90460b063818abda7.zip
external_mesa3d-ff90a8784cf22ada7bba75f90460b063818abda7.tar.gz
external_mesa3d-ff90a8784cf22ada7bba75f90460b063818abda7.tar.bz2
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>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/Makefile.am b/src/glx/Makefile.am
index 482d952..0cf65e5 100644
--- a/src/glx/Makefile.am
+++ b/src/glx/Makefile.am
@@ -111,7 +111,7 @@ GL_LIBS = \
GL_LDFLAGS = \
-no-undefined \
-version-number 1:2 \
- -Wl,-Bsymbolic \
+ $(BSYMBOLIC) \
$(GC_SECTIONS) \
$(LD_NO_UNDEFINED)