Print this page
9852 enable ld(1) guidance and deflib assertions for the illumos build

@@ -42,10 +42,19 @@
 #LDLIBS +=      -lrpcsvc -lnsl -lcrypt -lintl -lgen
 LDLIBS +=       -lnsl -lnisdb -lc
 MAPFILES =      $(MAPFILE.INT) $(MAPFILE.NGB)
 LDFLAGS +=      $(MAPFILES:%=-M%)
 
+# This links with libnisdb, and thus is 'C++', but is otherwise entirely C.  A
+# result of this is that it probably doesn't _actually_ use the C++ runtime, but
+# may in future (depending on compiler implementation)
+#
+# Give up.
+ZGUIDANCE= -zguidance=nounused
+
+$(__SUNC)ADJUNCT_LIBS = libC.so
+
 # Pick up includes from library
 CPPFLAGS += -I$(SRC)/lib/libnisdb/yptol
 
 # This file is now in the $(SRC)/head/rpcsvc directory.
 #HDRFILE= yppasswd.h