[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#778122: patch for gcc5 build issue



tags 778122 + patch
thanks

Here is a simpler fix. I added the -std=gcc89 flag to 07_libft_PIC patch to cover gcc5 build issue.
This builds and links with gcc5 and gcc4.9

Upstream may prefer to move to C99 instead, please see section
"Different semantics for inline functions" at
https://gcc.gnu.org/gcc-5/porting_to.html for more background.

--
Alexander Balderson
Linux for HP Helion OpenStack, Hewlett-Packard
--- flow-tools-0.68.orig/debian/patches/07_libft_PIC	2015-07-20 22:00:28.476000000 +0000
+++ flow-tools-0.68/debian/patches/07_libft_PIC	2015-07-20 21:55:19.292000000 +0000
@@ -30,7 +30,7 @@
  #AM_CFLAGS=-g -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs
  #AM_CFLAGS=-O2
 -AM_CFLAGS = -g -Wall
-+AM_CFLAGS = -g -Wall -fPIC
++AM_CFLAGS = -g -Wall -fPIC -std=gnu89
  
  DEFS = -I. -I$(srcdir)/lib
  

Reply to: