symbol.h symbol.c \
textprop.h textprop.c
-libm17n_core_la_LDFLAGS = @XML2_LD_FLAGS@ ${VINFO}
+libm17n_core_la_LIBADD = @XML2_LD_FLAGS@
+libm17n_core_la_LDFLAGS = -export-dynamic ${VINFO}
libm17n_la_SOURCES = \
charset.h charset.c \
language.h language.c \
mlocale.h locale.c \
m17n.h m17n.c
-libm17n_la_LIBADD = libm17n-core.la
-libm17n_la_LDFLAGS = ${VINFO}
+libm17n_la_LIBADD = libm17n-core.la -ldl
+libm17n_la_LDFLAGS = -export-dynamic ${VINFO}
GUI_SOURCES = \
face.h face.c \
internal-gui.h \
m17n-gui.h m17n-gui.c
-X_LD_FLAGS = ${X_PRE_LIBS} ${X_LIBS} -lX11 -lXt ${X_EXTRA_LIBS}
OPTIONAL_LD_FLAGS = \
@FREETYPE_LD_FLAGS@ \
@FRIBIDI_LD_FLAGS@ \
@FONTCONFIG_LD_FLAGS@
libm17n_gui_la_SOURCES = ${GUI_SOURCES}
-libm17n_gui_la_LIBADD = libm17n.la
-libm17n_gui_la_LDFLAGS = ${OPTIONAL_LD_FLAGS} ${VINFO}
+libm17n_gui_la_LIBADD = ${OPTIONAL_LD_FLAGS} libm17n.la
+libm17n_gui_la_LDFLAGS = -export-dynamic ${VINFO}
+
+X_LD_FLAGS = ${X_PRE_LIBS} ${X_LIBS} -lXt -lX11 ${X_EXTRA_LIBS}
libm17n_X_la_SOURCES = m17n-X.h m17n-X.c
-libm17n_X_la_LIBADD = libm17n-gui.la ${X_LD_FLAGS} @XFT2_LD_FLAGS@
-libm17n_X_la_LDFLAGS = ${VINFO}
+libm17n_X_la_LIBADD = ${X_LD_FLAGS} @XFT2_LD_FLAGS@ libm17n-gui.la
+libm17n_X_la_LDFLAGS = -module ${VINFO}
-libm17n_gd_la_SOURCES = m17n-gd.h m17n-gd.c
-libm17n_gd_la_LIBADD = libm17n-gui.la @GD_LD_FLAGS@
-libm17n_gd_la_LDFLAGS = ${VINFO}
+libm17n_gd_la_SOURCES = m17n-gd.c
+libm17n_gd_la_LIBADD = @GD_LD_FLAGS@ libm17n-gui.la
+libm17n_gd_la_LDFLAGS = -module ${VINFO}
AM_CPPFLAGS = -DM17NDIR="\"@M17NDIR@\""
-include_HEADERS = m17n-core.h m17n.h m17n-misc.h m17n-gui.h m17n-X.h m17n-gd.h
+include_HEADERS = m17n-core.h m17n.h m17n-misc.h m17n-gui.h m17n-X.h
noinst_PROGRAMS = linkcore linkshell linkgui