Skip to content

Commit

Permalink
Fail to build if some referenced symbol cannot be resolved at link time.
Browse files Browse the repository at this point in the history
This also requires to link with the gmodule library.
  • Loading branch information
monnerat authored and vkareh committed Jan 30, 2019
1 parent 6447d7c commit ef861e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions configure.ac
Expand Up @@ -55,6 +55,7 @@ AC_DEFINE_UNQUOTED(PYGOBJECT_MINOR_VERSION,[$PYGOBJECT_MINOR_VERSION], [PyGObjec
AC_DEFINE_UNQUOTED(PYGOBJECT_MICRO_VERSION,[$PYGOBJECT_MICRO_VERSION], [PyGObject micro version.])

PKG_CHECK_MODULES(CAJA_PYTHON, [pygobject-3.0 >= $PYGOBJECT_REQUIRED
gmodule-no-export-2.0
libcaja-extension >= $CAJA_REQUIRED])

PYGOBJECT_DATADIR=`$PKG_CONFIG --variable=datadir pygobject-3.0`
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.am
Expand Up @@ -24,5 +24,5 @@ libcaja_python_la_CFLAGS = \
$(CAJA_PYTHON_CFLAGS) \
$(AM_CFLAGS)

libcaja_python_la_LDFLAGS = -module -avoid-version
libcaja_python_la_LDFLAGS = -module -avoid-version -Wl,-z,defs
libcaja_python_la_LIBADD = $(PYTHON_LIBS) $(CAJA_PYTHON_LIBS)

0 comments on commit ef861e9

Please sign in to comment.