open-lldp/open-lldp-gcc5.patch
Hannes Reinecke 3c348baeb9 Accepting request 292539 from home:elvigia:branches:network:fcoe
- Fix build with gcc5 (open-lldp-gcc5.patch)
* do not use -Werror
* Use -fgnu89-inline as the code relies on the old semantics

OBS-URL: https://build.opensuse.org/request/show/292539
OBS-URL: https://build.opensuse.org/package/show/network:fcoe/open-lldp?expand=0&rev=18
2015-04-08 10:28:44 +00:00

12 lines
509 B
Diff

--- open-lldp-0.9.46.orig/Makefile.am
+++ open-lldp-0.9.46/Makefile.am
@@ -16,7 +16,7 @@ ACLOCAL_AMFLAGS = -I m4
parse_cli.o: CFLAGS+=-U_FORTIFY_SOURCE -Wno-error
## system requires a shared libconfig
-AM_CFLAGS = -Wall -Werror -Wextra -Wformat=2 $(LIBCONFIG_CFLAGS) $(LIBNL_CFLAGS)
+AM_CFLAGS = -Wall -fgnu89-inline -Wextra -Wformat=2 $(LIBCONFIG_CFLAGS) $(LIBNL_CFLAGS)
AM_LDFLAGS = $(LIBCONFIG_LIBS) $(LIBNL_LIBS)
## header files to be installed, for programs using the client interface to lldpad