File: 040_cross.patch

package info (click to toggle)
unworkable 0.53-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 552 kB
  • sloc: ansic: 6,093; python: 443; yacc: 319; makefile: 6
file content (19 lines) | stat: -rw-r--r-- 630 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
Description: unworkable FTCBFS: hard codes the build architecture pkg-config
Author: Helmut Grohne <helmut@subdivi.de>
Bug-Debian: http://bugs.debian.org/928742
Last-Update: 2024-03-15

--- a/GNUmakefile
+++ b/GNUmakefile
@@ -30,8 +30,9 @@
 UNAME=$(shell uname)
 ifneq (, $(filter Linux GNU GNU/%, $(UNAME)))
 SRCS+=openbsd-compat/sha1.c
-LIBS+=$(shell pkg-config --libs libbsd-overlay)
-CFLAGS+=$(shell pkg-config --cflags libbsd-overlay)
+PKG_CONFIG?= pkg-config
+LIBS+=$(shell $(PKG_CONFIG) --libs libbsd-overlay)
+CFLAGS+=$(shell $(PKG_CONFIG) --cflags libbsd-overlay)
 else
 ifeq ($(UNAME),sunos)
 SRCS+=openbsd-compat/err.c