From ef861e9a5a48a3df18b11871fa317343fa578ad4 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Sat, 19 Jan 2019 01:10:01 +0100 Subject: Fail to build if some referenced symbol cannot be resolved at link time. This also requires to link with the gmodule library. --- configure.ac | 1 + src/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 79f685b..e0f80d7 100644 --- a/configure.ac +++ b/configure.ac @@ -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` diff --git a/src/Makefile.am b/src/Makefile.am index dd37d15..4203367 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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) -- cgit v1.2.1