aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2016-02-26 10:38:58 -0500
committerYishai Hadas <yishaih@mellanox.com>2016-05-17 16:40:10 +0300
commit678f7fa7dde82b76609ac41355fe61f755d83a53 (patch)
treef1041e15a06f7268d17572f26c392855f1c17387
parent70d200860584a0c452684566a15a23749269a979 (diff)
downloadlibibverbs-678f7fa7dde82b76609ac41355fe61f755d83a53.tar.gz
Makefile.am: Don't allow strict aliasing by default
One of the example programs issues compiler warnings with strict aliasing enabled in the gcc options, so disable it. Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 7d22e06..5a58599 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,7 +3,7 @@ AM_CPPFLAGS = -I$(srcdir)/include
lib_LTLIBRARIES = src/libibverbs.la
ACLOCAL_AMFLAGS = -I config
-AM_CFLAGS = -g -Wall
+AM_CFLAGS = -g -Wall -fno-strict-aliasing
src_libibverbs_la_CFLAGS = $(AM_CFLAGS) -DIBV_CONFIG_DIR=\"$(sysconfdir)/libibverbs.d\" \
$(LIBNL_CFLAGS)