Print this page
5468 Missing dependencies in lib/Makefile

@@ -21,11 +21,11 @@
 #
 #
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# ident "%Z%%M% %I%     %E% SMI"
+# Copyright 2015 RackTop Systems.
 #
 # cmd/picl/plugins/common/devtree/Makefile
 #
 LIBRARY=        libpicldevtree.a
 VERS=           .1

@@ -54,11 +54,11 @@
 CPPFLAGS +=     -D_REENTRANT
 LDLIBS +=       -L$(SRC)/lib/libsysevent -L$(SRC)/lib/libpicltree/$(MACH)
 LDLIBS +=       -lc -lkstat -ldevinfo -lpicltree -lnvpair
 LDLIBS +=       -L../piclevent -L$(ROOT)/usr/lib/picl/plugins -lpiclevent
 LDLIBS +=       -R/usr/platform/\$$PLATFORM/lib/picl/plugins
-LDLIBS +=       -R/usr/platform/sun4u/lib/picl/plugins
+$(SPARC_BLD)LDLIBS +=   -R/usr/platform/sun4u/lib/picl/plugins
 LDLIBS +=       -R/usr/lib/picl/plugins
 
 LINTFLAGS +=    -L$(SRC)/lib/libpicltree/$(MACH) -lpicltree
 
 .KEEP_STATE:

@@ -95,11 +95,11 @@
 
 lint :
         $(LINT.c) $(SRCS)
 
 %.so: %.o
-        $(LINK.c) -o $@ $(GSHARED) -h $@ $<
+        $(LINK.c) -o $@ $(GSHARED) -h $@ $< $(LDLIBS)
 
 %.o: %.c
         $(COMPILE.c) -o $@ $<
 
 $(SUBDIRS): FRC