From 444ed0ec86ac0d10dab59146904c421a2f6f4932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20R=C3=B6nnquist?= Date: Tue, 28 Jul 2020 14:28:46 +1000 Subject: Bug [#2189]. Allow cross-building for GTK by choosing pkg-config. --- doc/ScintillaHistory.html | 4 ++++ gtk/makefile | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 564ebf7eb..a4eab4c5d 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -580,6 +580,10 @@ Fix position of marker symbols for SC_MARGIN_RTEXT which were being moved based on width of text. +
  • + Allow cross-building for GTK by choosing pkg-config. + Bug #2189. +
  • Release 4.4.4 diff --git a/gtk/makefile b/gtk/makefile index 987a550a8..6724f7ae0 100644 --- a/gtk/makefile +++ b/gtk/makefile @@ -39,6 +39,7 @@ BASE_FLAGS += -fsanitize=$(SANITIZE) endif ARFLAGS = rc RANLIB ?= ranlib +PKG_CONFIG ?= pkg-config GTK_VERSION = $(if $(GTK3),gtk+-3.0,gtk+-2.0) @@ -88,8 +89,8 @@ BASE_FLAGS += $(if $(DEBUG),-g,-Os) CXX_BASE_FLAGS =--std=c++17 $(BASE_FLAGS) CXX_ALL_FLAGS =$(DEFINES) $(INCLUDES) $(CXX_BASE_FLAGS) $(CONFIG_FLAGS) -CONFIG_FLAGS:=$(shell pkg-config --cflags $(GTK_VERSION)) -CONFIGLIB:=$(shell pkg-config --libs $(GTK_VERSION) gmodule-no-export-2.0) +CONFIG_FLAGS:=$(shell $(PKG_CONFIG) --cflags $(GTK_VERSION)) +CONFIGLIB:=$(shell $(PKG_CONFIG) --libs $(GTK_VERSION) gmodule-no-export-2.0) MARSHALLER=scintilla-marshal.o all: $(COMPLIB) $(COMPONENT) $(LEXILLA) -- cgit v1.2.3