libglvnd: fix build on darwin

The --version-script flag is only supported by GNU LD
This commit is contained in:
Mario Rodas 2019-10-24 21:00:00 -05:00
parent 9d90d5fb29
commit efce3c1367
No known key found for this signature in database
GPG Key ID: 4C4BEFD7B18DC5E8

View File

@ -19,6 +19,8 @@ stdenv.mkDerivation rec {
--replace "-Wl,-Bsymbolic " ""
substituteInPlace src/EGL/Makefile.am \
--replace "-Wl,-Bsymbolic " ""
substituteInPlace src/GLdispatch/Makefile.am \
--replace "-Xlinker --version-script=$(VERSION_SCRIPT)" "-Xlinker"
'';
NIX_CFLAGS_COMPILE = [