File apcupsd-3.14.8-cxxld.patch of Package apcupsd
Index: apcupsd-3.14.13/src/Makefile
===================================================================
--- apcupsd-3.14.13.orig/src/Makefile
+++ apcupsd-3.14.13/src/Makefile
@@ -30,10 +30,10 @@ SRCS = $(common_srcs) $(apcupsd_srcs) $(
all-targets: apcupsd$(EXE) apcaccess$(EXE) apctest$(EXE) smtp$(EXE)
apcupsd$(EXE): $(common_obj) $(apcupsd_obj) $(APCDRVLIBS) $(APCLIBS)
- $(LINK) $(DRVLIBS) $(BG)
+ $(LINK) -lstdc++ $(DRVLIBS) $(BG)
apctest$(EXE): $(common_obj) $(apctest_obj) $(APCDRVLIBS) $(APCLIBS)
- $(LINK) $(DRVLIBS)
+ $(LINK) -lstdc++ $(DRVLIBS)
apcaccess$(EXE): $(apcaccess_obj) $(APCLIBS)
$(LINK)