From c78b8a0d869e6cbe088a25e3d62f11bbae849d11 Mon Sep 17 00:00:00 2001 From: Zeno Sebastian Endemann Date: Sun, 10 May 2020 11:40:02 +0200 Subject: [PATCH] Use pkg-config instead of hardcoded path to Qt5 moc --- hiro/GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hiro/GNUmakefile b/hiro/GNUmakefile index 51671b96..04837b27 100755 --- a/hiro/GNUmakefile +++ b/hiro/GNUmakefile @@ -52,7 +52,7 @@ ifneq ($(filter $(platform),linux bsd),) endif ifeq ($(hiro),qt5) - moc = /usr/local/lib/qt5/bin/moc + moc = $(shell pkg-config --variable=host_bins Qt5Core)/moc hiro.flags = $(flags.cpp) -DHIRO_QT=5 -fPIC $(shell pkg-config --cflags Qt5Core Qt5Gui Qt5Widgets) hiro.options = -L/usr/local/lib -lX11 $(shell pkg-config --libs Qt5Core Qt5Gui Qt5Widgets) endif