From: Christian Brauner Date: Tue, 21 Aug 2018 15:13:39 +0000 (+0200) Subject: Makefile: don't allow undefined symbols X-Git-Tag: lxc-3.1.0~138^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2561%2Fhead;p=thirdparty%2Flxc.git Makefile: don't allow undefined symbols Signed-off-by: Christian Brauner --- diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am index 32bb8d5e0..94886b23d 100644 --- a/src/lxc/Makefile.am +++ b/src/lxc/Makefile.am @@ -214,6 +214,7 @@ liblxc_la_CFLAGS = -fPIC \ -pthread liblxc_la_LDFLAGS = -pthread \ + -Wl,-no-undefined \ -Wl,-soname,liblxc.so.$(firstword $(subst ., ,@LXC_ABI@)) \ -version-info @LXC_ABI_MAJOR@ @@ -410,7 +411,8 @@ pam_cgfs_la_LIBADD = $(AM_LIBS) \ pam_cgfs_la_LDFLAGS = $(AM_LDFLAGS) \ -avoid-version \ -module \ - -shared + -shared \ + -Wl,-no-undefined endif endif