File: cross-build.patch

package info (click to toggle)
praat 6.4.47%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 237,816 kB
  • sloc: cpp: 1,464,323; ansic: 288,959; makefile: 976; python: 340; sh: 35
file content (27 lines) | stat: -rw-r--r-- 1,006 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Fix cross-build issues
Author: Helmut Grohne <helmut@subdivi.de>
Bug-Debian: https://bugs.debian.org/919490, https://bugs.debian.org/1028145
Forwarded: not-needed
Reviewed-By: Rafael Laboissière <rafael@debian.org>
Last-Update: 2024-02-02

--- a/makefiles/makefile.defs.chrome64
+++ b/makefiles/makefile.defs.chrome64
@@ -7,6 +7,8 @@ CC ?= gcc
 CXX ?= g++
 LINK ?= $(CXX)
 
+PKG_CONFIG ?= pkg-config
+
 COMMONFLAGS = -DUNIX -Dlinux -Dchrome -DALSA -DHAVE_PULSEAUDIO -D_FILE_OFFSET_BITS=64 `pkg-config --cflags gtk+-3.0` \
 	-Wreturn-type -Wunused -Wunused-parameter -Wuninitialized -O3 -g1 -pthread
 
@@ -16,7 +18,7 @@ CXXFLAGS = -std=c++17 $(COMMONFLAGS) -Wshadow
 
 EXECUTABLE = praat
 
-LIBS = `pkg-config --libs gtk+-3.0` -no-pie -lm -lpulse -lasound -static-libgcc -static-libstdc++ -lpthread -L /usr/lib/x86_64-linux-gnu
+LIBS = `$(PKG_CONFIG) --libs gtk+-3.0` -no-pie -lm -lpulse -lasound -static-libgcc -static-libstdc++ -lpthread -L /usr/lib/x86_64-linux-gnu
 
 AR = ar
 RANLIB = ls