Print this page
5468 Missing dependencies in lib/Makefile

@@ -18,10 +18,11 @@
 #
 # CDDL HEADER END
 #
 #
 # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright 2015 RackTop Systems.
 #
 
 .KEEP_STATE:
 .SUFFIXES:
 

@@ -98,11 +99,11 @@
         $(CTFMERGE) -L VERSION -o $@ $(LINKOBJS)
         $(POST_PROCESS_SO)
 
 $(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
         $(COMPILE.c) $< -o $(@F)
         $(CTFCONVERT) $(CTFCVTFLAGS) $(@F)