]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Makefile: don't allow undefined symbols 2561/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 21 Aug 2018 15:13:39 +0000 (17:13 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 21 Aug 2018 15:27:25 +0000 (17:27 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/Makefile.am

index 32bb8d5e05cc228202eb2bd88a7e6f93709e7e16..94886b23d6f76d4e80ced55b837be657b2479fad 100644 (file)
@@ -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