summaryrefslogtreecommitdiff
path: root/usr/src/cmd/fm
diff options
context:
space:
mode:
authorAndrew Stormont <astormont@racktopsystems.com>2015-12-02 19:15:44 +0300
committerGordon Ross <gwr@nexenta.com>2015-12-09 19:07:12 -0500
commitd50bcaae2118610560f2b107d0d282315e47e4e4 (patch)
tree96726e64d7a4c95a7955a4d26f2f15090aa3fd2f /usr/src/cmd/fm
parent289f7e33e45aca289f5680be1d8c2df820ba61bc (diff)
downloadillumos-gate-d50bcaae2118610560f2b107d0d282315e47e4e4.tar.gz
6492 Several commands/libraries build missing LDLIBS
Reviewed by: Robert Mustacci <rm@joyent.com> Reviewed by: Dan McDonald <danmcd@omniti.com> Approved by: Gordon Ross <gwr@nexenta.com>
Diffstat (limited to 'usr/src/cmd/fm')
-rw-r--r--usr/src/cmd/fm/fmd/Makefile.fmd3
-rw-r--r--usr/src/cmd/fm/modules/Makefile.plugin3
2 files changed, 4 insertions, 2 deletions
diff --git a/usr/src/cmd/fm/fmd/Makefile.fmd b/usr/src/cmd/fm/fmd/Makefile.fmd
index 67182fa4d1..3634df1269 100644
--- a/usr/src/cmd/fm/fmd/Makefile.fmd
+++ b/usr/src/cmd/fm/fmd/Makefile.fmd
@@ -20,6 +20,7 @@
#
#
# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright 2015 RackTop Systems.
#
.KEEP_STATE:
@@ -160,7 +161,7 @@ $(PROG): $(OBJS)
$(POST_PROCESS)
$(DMOD): $(DMOD_OBJS)
- $(LINK.c) $(DMOD_OBJS) -o $@ -lc
+ $(LINK.c) $(DMOD_OBJS) -o $@ $(LDLIBS) -lc
$(POST_PROCESS)
%.o: ../common/%.c
diff --git a/usr/src/cmd/fm/modules/Makefile.plugin b/usr/src/cmd/fm/modules/Makefile.plugin
index a8a0f00c83..c944c922b9 100644
--- a/usr/src/cmd/fm/modules/Makefile.plugin
+++ b/usr/src/cmd/fm/modules/Makefile.plugin
@@ -20,6 +20,7 @@
#
#
# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright 2015 RackTop Systems.
#
.KEEP_STATE:
@@ -100,7 +101,7 @@ $(PROG): $(OBJS) $(APIMAP)
$(DMODPROG): $(DMOD_OBJS) $(MAPFILE-DMOD)
-@mkdir -p $(@D)
- $(LINK.c) $(DMOD_OBJS) $(MAPFILE-DMOD:%=-M%) -o $@ -lc
+ $(LINK.c) $(DMOD_OBJS) $(MAPFILE-DMOD:%=-M%) -o $@ $(LDLIBS) -lc
$(POST_PROCESS)
%.o: %.c