Source: hardlink
Version: 0.3.2
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

hardlink fails to cross build from source, because the upstream Makefile
hard codes the build architecture pkg-config. After making it
substitutable, hardlink cross builds successfully. Please consider
applying the attached patch.

Helmut
--- hardlink-0.3.2.orig/Makefile
+++ hardlink-0.3.2/Makefile
@@ -13,9 +13,11 @@
 EXTRA_LIBS  = $(shell $(EXTRA_LIBS!))
 EXTRA_FLAGS = $(shell $(EXTRA_FLAGS!))
 
+PKG_CONFIG ?= pkg-config
+
 # pmake executes the commands, GNU make creates variables with a ! suffix
-EXTRA_LIBS!= pkg-config --libs $(ENABLE) 2>/dev/null || echo
-EXTRA_FLAGS!= pkg-config --cflags $(ENABLE) 2>/dev/null || echo
+EXTRA_LIBS!= $(PKG_CONFIG) --libs $(ENABLE) 2>/dev/null || echo
+EXTRA_FLAGS!= $(PKG_CONFIG) --cflags $(ENABLE) 2>/dev/null || echo
 
 #Default flags
 CFLAGS ?= -Wall -O2 -g

Reply via email to