summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/Automake.inc2
-rw-r--r--src/gallium/targets/omx.sym6
-rw-r--r--src/gallium/targets/r600/omx/Makefile.am2
-rw-r--r--src/gallium/targets/radeonsi/omx/Makefile.am2
4 files changed, 7 insertions, 5 deletions
diff --git a/src/gallium/Automake.inc b/src/gallium/Automake.inc
index feed5c32cb0..5263b7ae22a 100644
--- a/src/gallium/Automake.inc
+++ b/src/gallium/Automake.inc
@@ -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)
diff --git a/src/gallium/targets/omx.sym b/src/gallium/targets/omx.sym
new file mode 100644
index 00000000000..af22aedb587
--- /dev/null
+++ b/src/gallium/targets/omx.sym
@@ -0,0 +1,6 @@
+{
+ global:
+ omx_component_library_Setup;
+ local:
+ *;
+};
diff --git a/src/gallium/targets/r600/omx/Makefile.am b/src/gallium/targets/r600/omx/Makefile.am
index 2168db895ea..62e39705fa6 100644
--- a/src/gallium/targets/r600/omx/Makefile.am
+++ b/src/gallium/targets/r600/omx/Makefile.am
@@ -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 = \
diff --git a/src/gallium/targets/radeonsi/omx/Makefile.am b/src/gallium/targets/radeonsi/omx/Makefile.am
index 3c3790988bb..859659e0435 100644
--- a/src/gallium/targets/radeonsi/omx/Makefile.am
+++ b/src/gallium/targets/radeonsi/omx/Makefile.am
@@ -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 = \