summaryrefslogtreecommitdiffstats
path: root/mingw-w64-gtk3/gtk3-bug-731013-fix-cross-compilation.patch
blob: c0eccf0b93184a25dc795a907df5a8634d95e134 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
From f62df4c82839453135097914fa28200253acbb05 Mon Sep 17 00:00:00 2001
From: Hib Eris <hib@hiberis.nl>
Date: Wed, 24 Sep 2014 23:08:02 +0200
Subject: [PATCH] Fix cross compilation

https://bugzilla.gnome.org/show_bug.cgi?id=731013
---
 gtk/Makefile.am           |  2 +-
 gtk/inspector/Makefile.am |  2 +-
 util/Makefile.am          | 14 ++++++++++----
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 17ca614..7a71cde 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -1330,7 +1330,7 @@ template_headers = $(COMPOSITE_TEMPLATES:.ui=.ui.h)
 
 %.ui.h: %.ui
    $(AM_V_GEN) mkdir -p $(dir $@) \
-   && $(top_builddir)/util/extract-strings$(EXEEXT) $< > $@
+   && $(top_builddir)/util/extract-strings$(BUILD_EXEEXT) $< > $@
 
 #
 # rules to generate built sources
diff --git a/gtk/inspector/Makefile.am b/gtk/inspector/Makefile.am
index dfd54e0..fec2672 100644
--- a/gtk/inspector/Makefile.am
+++ b/gtk/inspector/Makefile.am
@@ -114,7 +114,7 @@ templates =                 \
 template_headers = $(templates:.ui=.ui.h)
 
 %.ui.h : %.ui 
-   $(AM_V_GEN) $(top_builddir)/util/extract-strings$(EXEEXT) $< > $@
+   $(AM_V_GEN) $(top_builddir)/util/extract-strings$(BUILD_EXEEXT) $< > $@
 
 EXTRA_DIST +=              \
    inspector.gresource.xml     \
diff --git a/util/Makefile.am b/util/Makefile.am
index 414dc68..3d82b7e 100644
--- a/util/Makefile.am
+++ b/util/Makefile.am
@@ -1,9 +1,15 @@
 # The extract_strings tool is a build utility that runs on the build system.
 
-noinst_PROGRAMS = extract-strings
+extract_strings_sources = extract-strings.c
+extract_strings_cppflags =
+extract_strings_cflags = $(GLIB_CFLAGS_FOR_BUILD)
+extract_strings_ldadd = $(GLIB_LIBS_FOR_BUILD)
+extract-strings$(BUILD_EXEEXT): $(extract_strings_sources)
+   @rm -f extract-strings$(BUILD_EXEEXT)
+   $(AM_V_CCLD)$(CC_FOR_BUILD) $(extract_strings_cppflags) $(CPPFLAGS_FOR_BUILD) $(extract_strings_cflags) $(CFLAGS_FOR_BUILD) $^ $(LDFLAGS_FOR_BUILD) $(extract_strings_ldadd) $(LIBS_FOR_BUILD) -o $@
+EXTRA_DIST = $(extract_strings_sources)
+DISTCLEANFILES = extract-strings
 
-extract_strings_SOURCES = extract-strings.c
-extract_strings_CFLAGS = $(GLIB_CFLAGS_FOR_BUILD)
-extract_strings_LDADD = $(GLIB_LIBS_FOR_BUILD)
+all: extract-strings$(BUILD_EXEEXT)
 
 -include $(top_srcdir)/git.mk
-- 
1.9.1