Switch off strict-aliasing until swig is fixed to produce code that doesn't break the rules. ================================================================================ --- tclpkg/gv/Makefile.am +++ tclpkg/gv/Makefile.am @@ -66,6 +66,7 @@ libgv_lua_la_SOURCES = $(BASESOURCES) gv_dummy_init.cpp libgv_lua_la_LIBADD = $(BASELIBS) @LUA_LIBS@ libgv_lua_la_LDFLAGS = -module -avoid-version +libgv_lua_la_CXXFLAGS = -fno-strict-aliasing $(LUA_data): gv_lua.cpp gv_lua.cpp: gv.i $(SWIG) -c++ -lua -o gv_lua.cpp $(srcdir)/gv.i @@ -78,6 +79,7 @@ nodist_libgv_ocaml_la_SOURCES = gv_ocaml.cpp $(OCAML_data) libgv_ocaml_la_SOURCES = $(BASESOURCES) gv_dummy_init.cpp libgv_ocaml_la_LIBADD = $(BASELIBS) @OCAML_LIBS@ +libgv_ocaml_la_CXXFLAGS = -fno-strict-aliasing libgv_ocaml_la_LDFLAGS = -module -avoid-version gv.ml gv.mli: gv_ocaml.cpp gv_ocaml.cpp: gv.i @@ -106,6 +108,7 @@ PERL_data = gv.pm nodist_libgv_perl_la_SOURCES = gv_perl.cpp $(PERL_data) libgv_perl_la_SOURCES = $(BASESOURCES) gv_dummy_init.cpp +libgv_perl_la_CXXFLAGS = -fno-strict-aliasing libgv_perl_la_LIBADD = $(BASELIBS) @PERL_LIBS@ libgv_perl_la_LDFLAGS = -module -avoid-version $(PERL_data): gv_perl.cpp @@ -117,6 +120,7 @@ nodist_libgv_php_la_SOURCES = gv_php.cpp php_gv.h libgv_php_la_SOURCES = $(BASESOURCES) gv_php_init.cpp libgv_php_la_LIBADD = $(BASELIBS) @PHP_LIBS@ +libgv_php_la_CXXFLAGS = -fno-strict-aliasing libgv_php_la_LDFLAGS = -module -avoid-version gv.php: gv_php.cpp php_gv.h: gv_php.cpp