Print this page
9852 enable ld(1) guidance and deflib assertions for the illumos build
@@ -58,10 +58,23 @@
$(NIS2LDAPPROG) := LDLIBS += -lc -lnsl -lnisdb
stdethers := LDLIBS += -lsocket
makedbm := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
makedbm := LDFLAGS += $(MAPFILES:%=-M%)
+# These things link with libnisdb, and thus are 'C++', but are otherwise
+# entirely C. A result of this is they probably don't _actually_ use the C++
+# runtime, but may in future (depending on compiler implementation)
+#
+# Give up.
+ypxfr := ZGUIDANCE= -zguidance=nounused
+ypxfrd := ZGUIDANCE= -zguidance=nounused
+ypserv := ZGUIDANCE= -zguidance=nounused
+
+$(__SUNC)ypxfr := ADJUNCT_LIBS = libC.so
+$(__SUNC)ypxfrd := ADJUNCT_LIBS = libC.so
+$(__SUNC)ypserv := ADJUNCT_LIBS = libC.so
+
$(ROOTVAR_YP)/aliases := FILEMODE=555
YPFILES = Makefile aliases nicknames updaters
ETCFILES = publickey
ROOTYPFILES= $(YPFILES:%=$(ROOTVAR_YP)/%)