From 1799188a904d0555c586dcab51e9534174dd8c90 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Tue, 21 Oct 2003 13:33:44 +0000 Subject: [PATCH] - use dietlibc compilation only for library-built, but not e.g. when building object for rpm-fake.so. This is very dark magic... git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@264 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/lib/Makefile-files | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/util-vserver/lib/Makefile-files b/util-vserver/lib/Makefile-files index d606c72..226a827 100644 --- a/util-vserver/lib/Makefile-files +++ b/util-vserver/lib/Makefile-files @@ -48,11 +48,15 @@ lib_XHDRS = lib/syscall-compat.hc \ lib/vserver-internal.h lib_lib_LIBS = lib/libvserver.a +lib_lib_LTLIBS = lib/libvserver.la +#lib_libvserver_la_SOURCES = $(lib_SRCS) lib_libvserver_a_SOURCES = $(lib_SRCS) lib_libvserver_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIB_DEBUG_CPPFLAGS) -I$(kernelincludedir) -D_REENTRANT -D_GNU_SOURCE # _REENTRANT is needed for dietlibc to use __error_location if USE_DIETLIBC -lib/%$(EXEEXT) lib/%$(OBJEXT): CC=$(DIET_CC) +lib/lib_libvserver_a-%$(EXEEXT) lib/lib_libvserver_a-%$(OBJEXT) \ +lib/libvserver.a \ + : CC=$(DIET_CC) endif -- 1.8.1.5