librc should link against libeinfo too

This commit is contained in:
Roy Marples 2007-09-10 21:26:13 +00:00
parent 2aac9fa464
commit bc6b031f2e
2 changed files with 3 additions and 2 deletions

View File

@ -58,6 +58,7 @@ LIBEINFOOBJS= libeinfo.o
LIBRCSOVER = 0
LIBRCSO = librc.so.$(LIBRCSOVER)
LIBRCOBJS = librc.o librc-depend.o librc-daemon.o librc-misc.o librc-strlist.o
LDLIBS_LIBRC = $(LIBEINFOSO)
RCOBJS = env-update.o fstabinfo.o mountinfo.o \
rc-depend.o rc-plugin.o rc-status.o rc-update.o runscript.o \
@ -107,7 +108,7 @@ $(LIBEINFOSO): $(LIBEINFOOBJS)
$(LIBRCOBJS):
$(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -c $<
$(LIBRCSO): $(LIBRCOBJS)
$(LIBRCSO): $(LIBRCOBJS) $(LIBEINFOSO)
$(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname,$(LIBRCSO) -o $(LIBRCSO) $(LDLIBS_LIBRC) $(LIBRCOBJS)
ln -sf $(LIBRCSO) librc.so

View File

@ -1 +1 @@
LDLIBS_LIBRC = -lkvm
LDLIBS_LIBRC += -lkvm