aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndreas Rönnquist <unknown>2020-07-28 14:28:46 +1000
committerAndreas Rönnquist <unknown>2020-07-28 14:28:46 +1000
commit4659b518cb8a47101da6e886c254e0223909621e (patch)
tree9d25025a99c66b76bf993c6832f0d3a687a4ba32
parent720002200bc7113a52073eab8289c830ae35b4a3 (diff)
downloadscintilla-mirror-4659b518cb8a47101da6e886c254e0223909621e.tar.gz
Backport: Bug [#2189]. Allow cross-building for GTK by choosing pkg-config.
Backport of changeset 8463:714e73622572.
-rw-r--r--doc/ScintillaHistory.html4
-rw-r--r--gtk/makefile3
2 files changed, 6 insertions, 1 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html
index 444d0f2ac..217254f1a 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -571,6 +571,10 @@
Fix position of marker symbols for SC_MARGIN_RTEXT which were being moved based on
width of text.
</li>
+ <li>
+ Allow cross-building for GTK by choosing pkg-config.
+ <a href="https://sourceforge.net/p/scintilla/bugs/2189/">Bug #2189</a>.
+ </li>
</ul>
<h3>
<a href="https://sourceforge.net/projects/scintilla/files/scintilla/3.21.0/scintilla3210.zip/download">Release 3.21.0</a>
diff --git a/gtk/makefile b/gtk/makefile
index 5dab941d4..1117a420c 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)
@@ -89,7 +90,7 @@ LUA_OBJS:=lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o linit.o \
endif
-CONFIG_FLAGS:=$(shell pkg-config --cflags $(GTK_VERSION))
+CONFIG_FLAGS:=$(shell $(PKG_CONFIG) --cflags $(GTK_VERSION))
MARSHALLER=scintilla-marshal.o
all: $(COMPLIB)