Skip to content

Commit ef861e9

Browse files
monneratvkareh
authored andcommitted
Fail to build if some referenced symbol cannot be resolved at link time.
This also requires to link with the gmodule library.
1 parent 6447d7c commit ef861e9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ AC_DEFINE_UNQUOTED(PYGOBJECT_MINOR_VERSION,[$PYGOBJECT_MINOR_VERSION], [PyGObjec
5555
AC_DEFINE_UNQUOTED(PYGOBJECT_MICRO_VERSION,[$PYGOBJECT_MICRO_VERSION], [PyGObject micro version.])
5656

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

6061
PYGOBJECT_DATADIR=`$PKG_CONFIG --variable=datadir pygobject-3.0`

src/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ libcaja_python_la_CFLAGS = \
2424
$(CAJA_PYTHON_CFLAGS) \
2525
$(AM_CFLAGS)
2626

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

0 commit comments

Comments
 (0)