fd2495102d
- Disable Werror when building to work around a new GCC 7 warning. (bsc#1030244) + 0009-disable-Werror-building.patch OBS-URL: https://build.opensuse.org/request/show/487257 OBS-URL: https://build.opensuse.org/package/show/network:fcoe/fcoe-utils?expand=0&rev=34
16 lines
678 B
Diff
16 lines
678 B
Diff
---
|
|
Makefile.am | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/Makefile.am
|
|
+++ b/Makefile.am
|
|
@@ -2,7 +2,7 @@
|
|
sbin_PROGRAMS = fcoeadm fcoemon fcping fipvlan fcnsq fcrls
|
|
|
|
## all targets should look for headers in the include directory
|
|
-AM_CPPFLAGS = -I${srcdir}/include -I${builddir}/include
|
|
+AM_CPPFLAGS = -I${srcdir}/include -I${builddir}/include -I/lib/modules/`rpm -q --list kernel | grep "^/lib/modules/.*/build$$" | cut -f4 -d"/" | sort -r | head -1`/build/include
|
|
## pass the sysconfdir into the C proprocessor
|
|
AM_CPPFLAGS += -DSYSCONFDIR="\"${sysconfdir}\"" -D_FORTIFY_SOURCE=2
|
|
AM_CFLAGS = -Wall -Wformat=2 -Wmissing-prototypes -Wstrict-prototypes
|