filter out wlua_plugin_list from libwireshark.sym when compiling without Lua
authorrbalint <rbalint@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 8 Dec 2010 23:36:01 +0000 (23:36 +0000)
committerrbalint <rbalint@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 8 Dec 2010 23:36:01 +0000 (23:36 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35160 f5534014-38df-0310-8fa8-9805f1628bb7

epan/Makefile.am

index 738aa0f896a239615f0a4676f07463c7eb00845e..01080128be0bd249baa056b09a442691540fd182 100644 (file)
@@ -28,10 +28,12 @@ if HAVE_LIBLUA
 wslua_lib = wslua/libwslua.la
 wslua_dir = wslua
 wslua_dist_dir =
 wslua_lib = wslua/libwslua.la
 wslua_dir = wslua
 wslua_dist_dir =
+wslua_filter_symbols = 
 else            # HAVE_LIBLUA
 wslua_lib =
 wslua_dir =
 wslua_dist_dir = wslua
 else            # HAVE_LIBLUA
 wslua_lib =
 wslua_dir =
 wslua_dist_dir = wslua
+wslua_filter_symbols = /^wlua_plugin_list$$/{next;};
 endif           # HAVE_LIBLUA
 
 if HAVE_LIBPY
 endif           # HAVE_LIBLUA
 
 if HAVE_LIBPY
@@ -149,6 +151,10 @@ libwireshark_la_DEPENDENCIES = \
        ${top_builddir}/wiretap/libwiretap.la \
        libwireshark.sym
 
        ${top_builddir}/wiretap/libwiretap.la \
        libwireshark.sym
 
+# filter out undefined symbols
+libwireshark.sym: libwireshark.def
+       $(AWK) '/^EXPORTS$$/ {next;};${wslua_filter_symbols}/^[^;]/ { print $$1;}' < $< > $@
+
 #EXTRA_PROGRAMS = reassemble_test
 #reassemble_test_LDADD = $(GLIB_LIBS)
 
 #EXTRA_PROGRAMS = reassemble_test
 #reassemble_test_LDADD = $(GLIB_LIBS)