Commit bf45401f authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte

Export symbols in glade executable for windows build

parent 788c17e4
......@@ -159,10 +159,10 @@ libgladeui_2_la_LDFLAGS += -no-undefined
endif
if NATIVE_WIN32
# gmodule-export-2.0 on windows does not include -export-dynamic flag
libgladeui_2_la_LDFLAGS += \
-Wl,gladeui-win32-res.o \
-export-dynamic \
-export-symbols-regex "^(glade).*"
-export-dynamic
libgladeui_2_la_DEPENDENCIES = gladeui-win32-res.o
endif
......
......@@ -46,6 +46,9 @@ glade-resources.c glade-resources.h: glade-resources.gresource.xml \
if NATIVE_WIN32
glade_LDADD += glade-win32-res.o
glade_LDFLAGS += -export-dynamic
if !GLADE_UNSTABLE
glade_LDFLAGS += -mwindows
endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment