diff --git a/Makefile.am b/Makefile.am
index c436265..8641327 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -14,7 +14,7 @@ else
 lib_LTLIBRARIES = psqlodbca.la
 endif
 
-AM_LDFLAGS = -module -no-undefined -avoid-version
+AM_LDFLAGS = -module -no-undefined -avoid-version -export-symbols-regex '^SQL'
 
 psqlodbca_la_SOURCES = \
 	info.c bind.c columninfo.c connection.c convert.c drvconn.c \
