File Fix-qt6.patch of Package check-a11y

From 220b6858ccdf7d7cc49a8653df54b677b69976d5 Mon Sep 17 00:00:00 2001
From: Michal Suchanek <msuchanek@suse.de>
Date: Sun, 28 Apr 2024 16:39:09 +0200
Subject: [PATCH] Fix qt6

---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 1da2c83..14d054c 100644
--- a/Makefile
+++ b/Makefile
@@ -183,11 +183,11 @@ ifneq ($(shell pkg-config --libs Qt6Widgets 2> /dev/null),)
 QT6=Y
 show_qt6.cpp: show_qt.cpp
 	ln $< $@
-show_qt6.o: CPPFLAGS+=$(shell pkg-config --cflags Qt6Widgets)
+show_qt6.o: CPPFLAGS+=$(shell pkg-config --cflags Qt6Widgets Qt6Core)
 show_qt6.o: CXXFLAGS+=-fPIC
 show_qt6: show_qt6.o
-show_qt6: LDFLAGS+=$(shell pkg-config --libs-only-L Qt6Widgets)
-show_qt6: LDLIBS+=$(shell pkg-config --libs-only-l Qt6Widgets) -lstdc++
+show_qt6: LDFLAGS+=$(shell pkg-config --libs-only-L Qt6Widgets Qt6Core)
+show_qt6: LDLIBS+=$(shell pkg-config --libs-only-l Qt6Widgets Qt6Core) -lstdc++
 ALL+=show_qt6
 endif
 
-- 
2.44.0

openSUSE Build Service is sponsored by