It appears building with as-needed in the LDFLAGS breaks virtualgl: https://github.com/VirtualGL/virtualgl/issues/16 https://bugs.archlinux.org/task/48403?project=5 https://git.archlinux.org/svntogit/community.git/log/trunk?h=packages/virtualgl Reproducible: Always
Or rather than overriding useful features, fix the build system instead.
(In reply to Jeroen Roovers from comment #1) > Or rather than overriding useful features, fix the build system instead. My understanding is this isn't an issue with the build system. The libraries that break with as-needed are shims that are meant to be preloaded to intercept calls and are incomplete by design.
According to upstream github issue seems unlikely the situation will change. Thanks for reporting the issue. commit 760dbd6845da13d76b6597ed4361ac6f021d9f8a Author: Ettore Di Giacinto <mudler@gentoo.org> Date: Sat Apr 8 10:46:59 2017 +0200 x11-misc/virtualgl: Version bump to 2.5.2, fixes bug #597378 Workarounds upstream bug, which likely will not be fixed anytime soon Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=597378 Package-Manager: Portage-2.3.3, Repoman-2.3.2