summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraliaspider2014-12-09 01:00:31 +0100
committeraliaspider2014-12-09 01:00:31 +0100
commit38158f67e2d8a9c8c43b3b3598a56f3d86a727f8 (patch)
treeb341c90431679c86b1d87b4cc307fd1d4d510fa3
parent8f9b841f721bbfbc74590267e57e0bb4744ae63f (diff)
downloadpicogpsp-38158f67e2d8a9c8c43b3b3598a56f3d86a727f8.tar.gz
picogpsp-38158f67e2d8a9c8c43b3b3598a56f3d86a727f8.tar.bz2
picogpsp-38158f67e2d8a9c8c43b3b3598a56f3d86a727f8.zip
show undefined referances.
add link.T
-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: *;
+};
+
+