openbsd-ports/games/ggz/libggz/patches/patch-src_Makefile_in
jasper 89333450fd - compiling this took an aeon on sparc64, fix that.
spotted by sturm@ some time ago
2008-12-22 22:57:45 +00:00

24 lines
1.0 KiB
Plaintext

$OpenBSD: patch-src_Makefile_in,v 1.1 2008/12/22 22:57:45 jasper Exp $
Append extra CFLAGS if needed (fixes build on sparc64).
--- src/Makefile.in.orig Fri Dec 5 18:55:05 2008
+++ src/Makefile.in Fri Dec 5 18:55:46 2008
@@ -72,13 +72,14 @@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(EXTRA_CFLAGS)
LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(EXTRA_CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+ $(EXTRA_CFLAGS) \
$(LDFLAGS) -o $@
SOURCES = $(libggz_la_SOURCES)
DIST_SOURCES = $(libggz_la_SOURCES)