]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc build fix for Suse
authorJiri Slaby <jslaby@suse.cz>
Tue, 18 Aug 2009 21:28:42 +0000 (23:28 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 18 Aug 2009 21:28:42 +0000 (23:28 +0200)
Hi,

I have to use the attached patch to allow lxc building in the SUSE build
system. It uses as-needed flag and build thus fails, since -lutil is not
at the appropriate place on the command line.

js
suse labs

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/Makefile.am

index 788becf7b5fc5783de08526274affe4372af09e8..d63eb4f666fde91ee9da64188106994be411aa11 100644 (file)
@@ -1,7 +1,6 @@
 INCLUDES= -I$(top_srcdir)/src -DLXCPATH="\"@LXCPATH@\"" \
          -DLXCBINDIR="\"$(bindir)\"" \
          -DLXCLIBEXECDIR="\"$(libexecdir)\""
-AM_LDFLAGS= -lutil
 lib_LTLIBRARIES = liblxc.la
 pkginclude_HEADERS = \
                start.h \
@@ -52,6 +51,7 @@ liblxc_la_SOURCES = \
        cr_plugin_columbia.c lxc_plugin.h
 
 liblxc_la_LDFLAGS = -release @PACKAGE_VERSION@
+liblxc_la_LIBADD = -lutil
 
 bin_SCRIPTS = \
        lxc-ps \