aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-09-10 21:26:13 +0000
committerRoy Marples <roy@marples.name>2007-09-10 21:26:13 +0000
commitbc6b031f2e4bfe7a424f1dae241e4eb77b0992f8 (patch)
treee7c419518ccaf1b6b382bb3ff3d8e528fd0c5d99 /src
parent2aac9fa4644215a6c0612c0f4ac5a0ba862fe729 (diff)
librc should link against libeinfo too
Diffstat (limited to 'src')
-rw-r--r--src/Makefile3
-rw-r--r--src/Makefile.BSD2
2 files changed, 3 insertions, 2 deletions
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