Skip to content

Commit

Permalink
GeanyLua: explicitly link GModule
Browse files Browse the repository at this point in the history
Explicit linking of GModule is now required since GIO stopped publicly
depending on it.
  • Loading branch information
b4n authored and frlan committed Apr 12, 2012
1 parent 2fb8740 commit bbb4422
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions build/geanylua.m4
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ AC_DEFUN([GP_CHECK_GEANYLUA],
LUA_VERSION=5.1
GP_CHECK_PLUGIN_DEPS([GeanyLua], [LUA],
[${LUA_PKG_NAME} >= ${LUA_VERSION}])
GP_CHECK_PLUGIN_DEPS([GeanyLua], [GMODULE], [gmodule-2.0])
GP_STATUS_PLUGIN_ADD([GeanyLua], [$enable_geanylua])
AC_CONFIG_FILES([
Expand Down
2 changes: 2 additions & 0 deletions geanylua/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ libgeanylua_la_SOURCES = \

geanylua_la_CFLAGS = \
$(AM_CFLAGS) \
$(GMODULE_CFLAGS) \
$(LUA_CFLAGS)

geanylua_la_LIBADD = \
$(COMMONLIBS) \
$(GMODULE_LIBS) \
$(LUA_LIBS)

libgeanylua_la_CFLAGS = $(geanylua_la_CFLAGS)
Expand Down
2 changes: 1 addition & 1 deletion geanylua/wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sources = ['geanylua.c']
lua_sources = [ 'glspi_init.c', 'glspi_app.c', 'glspi_dlg.c',
'glspi_doc.c', 'glspi_kfile.c', 'glspi_run.c',
'glspi_sci.c', 'gsdlg_lua.c' ]
libraries = ['LUA']
libraries = ['LUA', 'GMODULE']

build_plugin(bld, name, sources=sources, libraries=libraries)

Expand Down
6 changes: 6 additions & 0 deletions geanylua/wscript_configure
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ def try_to_find_lua_package():
found_lua_package = try_to_find_lua_package()
if not found_lua_package:
raise ConfigurationError('You need Lua 5.1 for the GeanyLua plugin')

check_cfg_cached(conf,
package='gmodule-2.0',
mandatory=True,
uselib_store='GMODULE',
args='--cflags --libs')

0 comments on commit bbb4422

Please sign in to comment.