Summary: | llvmpipe test programs link fails when ld --as-needed option is used | ||
---|---|---|---|
Product: | Mesa | Reporter: | Olivier Blin <freedesktop> |
Component: | Mesa core | Assignee: | mesa-dev |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | colin, csredrat, jfonseca, pedretti.fabio, sarvatt |
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | gallium: only link static archives between ld start/end group options |
Description
Olivier Blin
2012-07-16 20:12:05 UTC
Link is also fine if I remove the --as-needed option in the original command. "-ldl" appears several time in the command line. So I don't understand why dlclose is not dlclose. I'm not an automake expert so I don't know how to help here. Actually, only static archives should be listed between the --start-group and --end-group options. We should list static archives and dynamic libraries in different variables, like done with a LDADD variable in state_trackers/d3d1x/progs/Makefile. I will prepare a patch. Created attachment 65103 [details] [review] gallium: only link static archives between ld start/end group options The attached patch fixes the issue. I have checked the Makefiles in src/gallium, and found only llvmpipe and gd3d1x mixing static archives and dynamic libs in the LIBS variable, which is used between --start-group and --end-group ld options. *** Bug 49504 has been marked as a duplicate of this bug. *** Any chance of this being commited to master? It fixes the build when --with-llvm-shared-libs is used. It seems that this, or at least bug #49504 which is a duplicate, is fixed. Close it if you agree. Fabio: no, the bug is still present in 9.0 branch, and likely in master since the build files did not change. The patch from comment 4 can still be applied as is. This patch no longer apply after recent automake work. Fixed? Fixed this? I can not reproduce the build issue anymore, so this patch is not needed. This has likely been fixed by the automake conversion. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.