summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--link.T6
2 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a9aab37..3152bf3 100644
--- a/Makefile
+++ b/Makefile
@@ -36,7 +36,7 @@ OBJS += libretro.o
ASFLAGS = $(CFLAGS)
INCDIRS := -I.
-LDFLAGS += -shared -m32
+LDFLAGS += -shared -m32 -Wl,--no-undefined -Wl,--version-script=link.T
LDLIBS += -lz
diff --git a/link.T b/link.T
new file mode 100644
index 0000000..a90d3a8
--- /dev/null
+++ b/link.T
@@ -0,0 +1,6 @@
+{
+ global: retro_*;
+ local: *;
+};
+
+