File: 02-makefile.patch

package info (click to toggle)
jnoise 0.6.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 140 kB
  • ctags: 93
  • sloc: cpp: 334; makefile: 27
file content (17 lines) | stat: -rw-r--r-- 542 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: use $(CXX) instead of hardcoding g++
 This fixes cross building, where the compiler used is prefixed by the host architecture
Author: Mattia Rizzolo <mattia@debian.org>
Last-Update: 2017-08-29
Forwarded: Fons Adriaensen <fons@linuxaudio.org>

--- a/source/Makefile
+++ b/source/Makefile
@@ -37,7 +37,7 @@
 jnoise:	CPPFLAGS += -ffast-math
 jnoise:	LDLIBS += -ljack -lrt
 jnoise:	$(JNOISE_O)
-	g++ $(LDFLAGS) -o $@ $(JNOISE_O) $(LDLIBS)
+	$(CXX) $(LDFLAGS) -o $@ $(JNOISE_O) $(LDLIBS)
 
 $(JNOISE_O):
 -include $(JNOISE_O:%.o=%.d)