[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#703432: Build error re -nostdinc++



Package: debian-cd
Version: 3.1.11

I have no idea why this gets left in, as it even generates an error on the official Debian CD build system.

cc1: warning: command line option "-nostdinc++" is valid for C++/ObjC++ but not for C

Attached please find a patch file that fixes the error.

--
Robert Spencer
--- Makefile~	2012-09-17 00:49:36.000000000 +0000
+++ Makefile	2013-03-19 14:52:56.000000000 +0000
@@ -338,7 +338,7 @@
 	fi; \
 	if [ "$(SOURCEONLY)"x != "yes"x ] ; then \
 		cat $(TASKDIR)/$(TASK) | \
-		cpp -nostdinc -nostdinc++ -P -undef $$ARCHDEFS $$VARIANTDEFS\
+		cpp -nostdinc -P -undef $$ARCHDEFS $$VARIANTDEFS\
 	   		$$ARCHUNDEFS -U i386 -U linux -U unix \
 		    -DFORCENONUSONCD1=0 \
 		    -I $(TASKDIR) - - >> $(BDIR)/rawlist; \

Reply to: