mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 01:18:06 +02:00
targets/omx: use version script to limit amount of exported symbols
Using export-symbols-regex is the least desirable method of restricting the exported symbols, as is completely messes up with the symbol table. radeon_drm_winsys_create is not needed, avoid exporting it. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
6239d42fdb
commit
bea9e8dca0
4 changed files with 7 additions and 5 deletions
|
|
@ -81,7 +81,7 @@ GALLIUM_OMX_LINKER_FLAGS = \
|
|||
-shared \
|
||||
-module \
|
||||
-no-undefined \
|
||||
-export-symbols-regex $(EXPORTS) \
|
||||
-Wl,--version-script=$(top_srcdir)/src/gallium/targets/omx.sym \
|
||||
$(GC_SECTIONS) \
|
||||
$(LD_NO_UNDEFINED)
|
||||
|
||||
|
|
|
|||
6
src/gallium/targets/omx.sym
Normal file
6
src/gallium/targets/omx.sym
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
global:
|
||||
omx_component_library_Setup;
|
||||
local:
|
||||
*;
|
||||
};
|
||||
|
|
@ -20,8 +20,6 @@
|
|||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
# DEALINGS IN THE SOFTWARE.
|
||||
|
||||
EXPORTS = '^(omx_component_library_Setup|radeon_drm_winsys_create)$$'
|
||||
|
||||
include $(top_srcdir)/src/gallium/Automake.inc
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
|||
|
|
@ -20,8 +20,6 @@
|
|||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
# DEALINGS IN THE SOFTWARE.
|
||||
|
||||
EXPORTS = '^(omx_component_library_Setup|radeon_drm_winsys_create)$$'
|
||||
|
||||
include $(top_srcdir)/src/gallium/Automake.inc
|
||||
|
||||
AM_CFLAGS = \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue