Mercurial > hg > truffle
comparison make/solaris/makefiles/adlc.make @ 603:dbbe28fc66b5
6778669: Patch from Red Hat -- fixes compilation errors
Summary: Some fixes which are required to build on recent GCCs.
Reviewed-by: never, kvn
Contributed-by: langel@redhat.com
author | twisti |
---|---|
date | Fri, 27 Feb 2009 03:35:40 -0800 |
parents | 284d0af00d53 |
children | 7bb995fbd3c0 |
comparison
equal
deleted
inserted
replaced
602:ed6404fac86b | 603:dbbe28fc66b5 |
---|---|
1 # | 1 # |
2 # Copyright 1997-2008 Sun Microsystems, Inc. All Rights Reserved. | 2 # Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # | 4 # |
5 # This code is free software; you can redistribute it and/or modify it | 5 # This code is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License version 2 only, as | 6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. | 7 # published by the Free Software Foundation. |
65 CFLAGS += -library=Cstd -g | 65 CFLAGS += -library=Cstd -g |
66 LFLAGS += -library=Cstd -g | 66 LFLAGS += -library=Cstd -g |
67 endif | 67 endif |
68 | 68 |
69 # CFLAGS_WARN holds compiler options to suppress/enable warnings. | 69 # CFLAGS_WARN holds compiler options to suppress/enable warnings. |
70 # Compiler warnings are treated as errors | |
71 CFLAGS_WARN = +w -errwarn | |
70 CFLAGS += $(CFLAGS_WARN) | 72 CFLAGS += $(CFLAGS_WARN) |
71 | 73 |
72 ifeq ("${Platform_compiler}", "sparcWorks") | 74 ifeq ("${Platform_compiler}", "sparcWorks") |
73 # Enable the following CFLAGS addition if you need to compare the | 75 # Enable the following CFLAGS addition if you need to compare the |
74 # built ELF objects. | 76 # built ELF objects. |