From bc6b031f2e4bfe7a424f1dae241e4eb77b0992f8 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 10 Sep 2007 21:26:13 +0000 Subject: librc should link against libeinfo too --- src/Makefile | 3 ++- src/Makefile.BSD | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index 03b42971..7e83c511 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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 diff --git a/src/Makefile.BSD b/src/Makefile.BSD index 88f70225..ab5cec7c 100644 --- a/src/Makefile.BSD +++ b/src/Makefile.BSD @@ -1 +1 @@ -LDLIBS_LIBRC = -lkvm +LDLIBS_LIBRC += -lkvm -- cgit v1.2.3