Source: calculix-cgx
Version: 2.11+dfsg-1
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

calculix-cgx fails to crossbuild from source, because the upstream
Makefile hard codes the build architecture compiler for the final linker
invocation. After making it subsitutable (see patch attached), it fails
to cross build due to #911040. Please consider applying the attached
patch anyway and close this bug when doing so.

Helmut
--- calculix-cgx-2.11+dfsg.orig/cgx_2.11/src/Makefile
+++ calculix-cgx-2.11+dfsg/cgx_2.11/src/Makefile
@@ -22,7 +22,7 @@
 OUTIL = $(SUTIL:.c=.o)
 
 cgx: $(OLIB) $(OUTIL) $(OULIB)
-	g++ -std=gnu++98 $(OULIB)  $(OLIB) $(OUTIL)  $(CFLAGS) $(LFLAGS) -o  $@
+	$(CXX) -std=gnu++98 $(OULIB)  $(OLIB) $(OUTIL)  $(CFLAGS) $(LFLAGS) -o  $@
 
 
 

Reply via email to