File: 0007-cross-build.patch

package info (click to toggle)
calculix-cgx 2.21%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 67,052 kB
  • sloc: ansic: 109,187; cpp: 3,087; sh: 70; makefile: 37
file content (15 lines) | stat: -rw-r--r-- 417 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Don't hardcode g++ so package is cross-buildable
Author: Helmut Grohne <helmut@subdivi.de>
Last-Updated: 2018-10-15

--- a/cgx_2.21/src/Makefile
+++ b/cgx_2.21/src/Makefile
@@ -28,7 +28,7 @@ OULIB = $(ULIB:.c=.o)
 OUTIL = $(SUTIL:.c=.o)
 
 cgx: $(OLIB) $(OUTIL) $(OULIB)
-	g++  $(OULIB)  $(OLIB) $(OUTIL)  $(CFLAGS) $(LFLAGS) -o  $@
+	$(CXX)  $(OULIB)  $(OLIB) $(OUTIL)  $(CFLAGS) $(LFLAGS) -o  $@