From: Pierre-Marc Fournier Date: Tue, 13 Apr 2010 17:45:30 +0000 (-0400) Subject: compile with -fno-strict-aliasing X-Git-Tag: v0.5~36 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=16c83055d749e9f246a934401e3862085aca1e65;p=ust.git compile with -fno-strict-aliasing --- diff --git a/Makefile.am b/Makefile.am index 05ea397..f7952c6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,4 +21,4 @@ libust.so: libust.ldscript.in # It is very important to compile the initializer with PIC otherwise we # may get obscure errors when linking to shared libraries. libust-initializer.o: libust-initializer.c - $(CC) $(CFLAGS) -fPIC -c -I$(top_srcdir)/include -o $@ $< + $(CC) $(CFLAGS) -fno-strict-aliasing -fPIC -c -I$(top_srcdir)/include -o $@ $< diff --git a/libust/Makefile.am b/libust/Makefile.am index b4d0598..529d4b0 100644 --- a/libust/Makefile.am +++ b/libust/Makefile.am @@ -1,4 +1,5 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/libustcomm +AM_CFLAGS = -fno-strict-aliasing lib_LTLIBRARIES = libust.la @@ -28,4 +29,4 @@ libust_la_LIBADD = \ $(top_builddir)/snprintf/libustsnprintf.la \ $(top_builddir)/libustcomm/libustcomm.la -libust_la_CFLAGS = -DUST_COMPONENT="libust" +libust_la_CFLAGS = -DUST_COMPONENT="libust" -fno-strict-aliasing diff --git a/libustcomm/Makefile.am b/libustcomm/Makefile.am index baebd84..c53dd14 100644 --- a/libustcomm/Makefile.am +++ b/libustcomm/Makefile.am @@ -1,4 +1,5 @@ AM_CPPFLAGS = -I$(top_srcdir)/include +AM_CFLAGS = -fno-strict-aliasing lib_LTLIBRARIES = libustcomm.la libustcomm_la_SOURCES = \ @@ -7,4 +8,4 @@ libustcomm_la_SOURCES = \ multipoll.h \ multipoll.c libustcomm_la_LDFLAGS = -no-undefined -version-info 0:0:0 -static -libustcomm_la_CFLAGS = -DUST_COMPONENT="libustcomm" -fPIC +libustcomm_la_CFLAGS = -DUST_COMPONENT="libustcomm" -fPIC -fno-strict-aliasing diff --git a/libustfork/Makefile.am b/libustfork/Makefile.am index 837f8dc..a53ddda 100644 --- a/libustfork/Makefile.am +++ b/libustfork/Makefile.am @@ -1,6 +1,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include +AM_CFLAGS = -fno-strict-aliasing lib_LTLIBRARIES = libustfork.la libustfork_la_SOURCES = ustfork.c libustfork_la_LIBADD = -ldl -libustfork_CFLAGS = -DUST_COMPONENT=libustfork +libustfork_CFLAGS = -DUST_COMPONENT=libustfork -fno-strict-aliasing diff --git a/libustinstr-malloc/Makefile.am b/libustinstr-malloc/Makefile.am index 0f9007a..26c73e0 100644 --- a/libustinstr-malloc/Makefile.am +++ b/libustinstr-malloc/Makefile.am @@ -1,4 +1,5 @@ AM_CPPFLAGS = -I$(top_srcdir)/include +AM_CFLAGS = -fno-strict-aliasing lib_LTLIBRARIES = libustinstr-malloc.la libustinstr_malloc_la_SOURCES = mallocwrap.c diff --git a/snprintf/Makefile.am b/snprintf/Makefile.am index 5ef7d82..f3b78bb 100644 --- a/snprintf/Makefile.am +++ b/snprintf/Makefile.am @@ -1,4 +1,5 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/libustcomm +AM_CFLAGS = -fno-strict-aliasing lib_LTLIBRARIES = libustsnprintf.la libustsnprintf_la_SOURCES = \ @@ -15,4 +16,4 @@ libustsnprintf_la_SOURCES = \ wcio.h \ wsetup.c libustsnprintf_la_LDFLAGS = -no-undefined -version-info 0:0:0 -static -libustsnprintf_la_CFLAGS = -DUST_COMPONENT="ust_snprintf" -fPIC +libustsnprintf_la_CFLAGS = -DUST_COMPONENT="ust_snprintf" -fPIC -fno-strict-aliasing diff --git a/ustctl/Makefile.am b/ustctl/Makefile.am index 4b8100f..94e8c00 100644 --- a/ustctl/Makefile.am +++ b/ustctl/Makefile.am @@ -1,5 +1,6 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/libustcomm \ -I$(top_srcdir)/libustcmd $(KCOMPAT_CFLAGS) +AM_CFLAGS = -fno-strict-aliasing bin_PROGRAMS = ustctl @@ -8,7 +9,7 @@ ustctl_SOURCES = \ $(top_srcdir)/libustcmd/ustcmd.c \ $(top_srcdir)/libustcmd/ustcmd.h -ustctl_CFLAGS = -DUST_COMPONENT=ustctl +ustctl_CFLAGS = -DUST_COMPONENT=ustctl -fno-strict-aliasing ustctl_LDADD = \ $(top_builddir)/snprintf/libustsnprintf.la \ diff --git a/ustd/Makefile.am b/ustd/Makefile.am index 96f167b..09d0984 100644 --- a/ustd/Makefile.am +++ b/ustd/Makefile.am @@ -1,5 +1,6 @@ AM_CPPFLAGS = -I$(top_srcdir)/libust -I$(top_srcdir)/libustcomm \ -I$(top_srcdir)/include +AM_CFLAGS = -fno-strict-aliasing bin_PROGRAMS = ustd @@ -10,4 +11,4 @@ ustd_LDADD = \ $(top_builddir)/libustcomm/libustcomm.la ustd_LDFLAGS = -lpthread -ustd_CFLAGS = -DUST_COMPONENT=ustd +ustd_CFLAGS = -DUST_COMPONENT=ustd -fno-strict-aliasing