Skip to content

Commit bbb3339

Browse files
committed
patch 7.4.1224
Problem: Build problems with GTK on BSD. (Mike Williams) Solution: Don't use "$<". Skip building gui_gtk_gresources.h when it doesn't work. (Kazunobu Kuriyama)
1 parent a542c68 commit bbb3339

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2646,9 +2646,11 @@ GUI_GTK_RES_INPUTS = \
26462646
../pixmaps/stock_vim_window_split_vertical.png
26472647

26482648
auto/gui_gtk_gresources.c: gui_gtk_res.xml $(GUI_GTK_RES_INPUTS)
2649-
$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=../pixmaps --generate --c-name=gui_gtk --manual-register $<
2649+
$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=../pixmaps --generate --c-name=gui_gtk --manual-register gui_gtk_res.xml
26502650
auto/gui_gtk_gresources.h: gui_gtk_res.xml $(GUI_GTK_RES_INPUTS)
2651-
$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=../pixmaps --generate --c-name=gui_gtk --manual-register $<
2651+
if test -z "$(GLIB_COMPILE_RESOURCES)"; then touch $@; else \
2652+
$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=../pixmaps --generate --c-name=gui_gtk --manual-register gui_gtk_res.xml; \
2653+
fi
26522654

26532655
# All the object files are put in the "objects" directory. Since not all make
26542656
# commands understand putting object files in another directory, it must be

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,8 @@ static char *(features[]) =
742742

743743
static int included_patches[] =
744744
{ /* Add new patch number below this line */
745+
/**/
746+
1224,
745747
/**/
746748
1223,
747749
/**/

0 commit comments

Comments
 (0)