diff --git a/tcsh-6.19.00-001-remove-CFLAGS-for-gethost.patch b/tcsh-6.19.00-001-remove-CFLAGS-for-gethost.patch new file mode 100644 index 0000000..757fa95 --- /dev/null +++ b/tcsh-6.19.00-001-remove-CFLAGS-for-gethost.patch @@ -0,0 +1,25 @@ +From 0ec81072bff28befe1337612d4ec7a2d12028c9d Mon Sep 17 00:00:00 2001 +From: christos +Date: Tue, 26 May 2015 11:59:47 +0000 +Subject: [PATCH] Remove CFLAGS for gethost to ease cross-compilation + +--- + Makefile.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.in b/Makefile.in +index b557cfa..bfe51b6 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -449,7 +449,7 @@ pure:$(P) ${OBJS} + + gethost: gethost.c sh.err.h tc.const.h sh.h + rm -f gethost +- ${CC_FOR_GETHOST} -o gethost ${CPPFLAGS} ${CFLAGS} $(srcdir)/gethost.c ++ ${CC_FOR_GETHOST} -o gethost ${CPPFLAGS} $(srcdir)/gethost.c + + tc.defs.c: gethost host.defs + @rm -f $@.tmp +-- +2.5.5 + diff --git a/tcsh.spec b/tcsh.spec index 6e9b260..0e68424 100644 --- a/tcsh.spec +++ b/tcsh.spec @@ -29,6 +29,7 @@ Source: ftp://ftp.astron.com/pub/tcsh/%{name}-%{version}.tar.gz # Upstream patches -- official upstream patches released by upstream since the # ---------------- last rebase that are necessary for any reason: Patch000: tcsh-6.19.00-000-announcement.patch +Patch001: tcsh-6.19.00-001-remove-CFLAGS-for-gethost.patch # Downstream patches -- these should be always included when doing rebase: @@ -152,6 +153,7 @@ fi * Tue May 3 2016 David Kaspar [Dee'Kej] - 6.19.00-7 - Adding multiple upstream patches to stay closer with upstream: tcsh-6.19.00-000-announcement.patch + tcsh-6.19.00-001-remove-CFLAGS-for-gethost.patch * Thu Apr 21 2016 David Kaspar [Dee'Kej] - 6.19.00-6 - Drop tcsh-6.15.00-closem.patch - issue not reproducible, patch not accepted by upstream