mksysinfo: Pass -O to compiler to avoid warnings on CentOS.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 17 Dec 2014 14:26:55 +0000 (14:26 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 17 Dec 2014 14:26:55 +0000 (14:26 +0000)
From Uros Bizjak.
https://gcc.gnu.org/ml/gcc-patches/2014-12/msg01366.html

From-SVN: r218819

libgo/Makefile.am
libgo/Makefile.in

index 48114d11d505bddf3fbf49705f26b0c13f87d81f..380caf53c6b7bd6ce5a62f863baae04a08899b68 100644 (file)
@@ -1812,7 +1812,7 @@ s-syscall_arch: Makefile
 
 sysinfo.go: s-sysinfo; @true
 s-sysinfo: $(srcdir)/mksysinfo.sh config.h
-       CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(OSCFLAGS)" $(SHELL) $(srcdir)/mksysinfo.sh
+       CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(OSCFLAGS) -O" $(SHELL) $(srcdir)/mksysinfo.sh
        $(SHELL) $(srcdir)/mvifdiff.sh tmp-sysinfo.go sysinfo.go
        $(STAMP) $@
 
index 259d134c9141492a9f94e244e1d88aff20fb81de..d495bf66dd768de59f262dbc2b55b2a12e6cfa22 100644 (file)
@@ -4421,7 +4421,7 @@ s-syscall_arch: Makefile
 
 sysinfo.go: s-sysinfo; @true
 s-sysinfo: $(srcdir)/mksysinfo.sh config.h
-       CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(OSCFLAGS)" $(SHELL) $(srcdir)/mksysinfo.sh
+       CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(OSCFLAGS) -O" $(SHELL) $(srcdir)/mksysinfo.sh
        $(SHELL) $(srcdir)/mvifdiff.sh tmp-sysinfo.go sysinfo.go
        $(STAMP) $@