[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#996641: unixcw FTCBFS: uses the build architecture pkg-config



Source: unixcw
Version: 3.6.0-2.1
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs

unixcw fails to cross build from source, because configure.ac hard codes
the build architecture pkg-config in one occasion. After changing it to
the host architecture one, it cross builds fine. Please consider
applying the attached patch.

Helmut
--- unixcw-3.6.0.orig/configure.ac
+++ unixcw-3.6.0/configure.ac
@@ -372,7 +372,7 @@
 			   AC_PATH_PROGS(MOC, [moc-qt5 moc], moc,`eval $PKG_CONFIG --variable=host_bins Qt5Core`)
 
 			   # https://stackoverflow.com/questions/11663702/how-to-suppress-warnings-for-file-included-from-header
-			   QT_INCLUDE_DIR=`pkg-config --variable=includedir Qt5Core`
+			   QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir Qt5Core`
 			   QT5_CFLAGS="-isystem $QT_INCLUDE_DIR"
 			   QT5_CFLAGS+=" -isystem $QT_INCLUDE_DIR/QtWidgets"
 			   QT5_CFLAGS+=" -isystem $QT_INCLUDE_DIR/QtGui"

Reply to: