summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr/src/cmd/svc/startd/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/usr/src/cmd/svc/startd/Makefile b/usr/src/cmd/svc/startd/Makefile
index d9b1c523a7..8b15034344 100644
--- a/usr/src/cmd/svc/startd/Makefile
+++ b/usr/src/cmd/svc/startd/Makefile
@@ -98,9 +98,17 @@ LDLIBS += \
-lumem \
-luutil
+#
+# While svc.startd only searches for libfmevent, which is in
+# $(ROOT)/lib/fm, when resolving dependencies it needs to know to search
+# for those in $(ROOT)/usr/lib/fm. However, we don't need a runpath
+# because libfmevent has that properly set already, but it doesn't help
+# us during the build.
+#
LDLIBS_i386 += -lbe
-LDLIBS += $(LDLIBS_$(MACH)) -L $(ROOT)/lib/fm -lfmevent
-LDFLAGS += -R /lib/fm
+LDLIBS += $(LDLIBS_$(MACH)) -L$(ROOT)/lib/fm -lfmevent \
+ -L$(ROOT)/usr/lib/fm
+LDFLAGS += -R/lib/fm
FILEMODE = 0555