1 # |
1 # |
2 # Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 1998, 2012, Oracle and/or its affiliates. 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. |
482 |
482 |
483 # Flags for Debugging |
483 # Flags for Debugging |
484 # The -g0 setting allows the C++ frontend to inline, which is a big win. |
484 # The -g0 setting allows the C++ frontend to inline, which is a big win. |
485 # The -xs setting disables 'lazy debug info' which puts everything in |
485 # The -xs setting disables 'lazy debug info' which puts everything in |
486 # the .so instead of requiring the '.o' files. |
486 # the .so instead of requiring the '.o' files. |
487 ifneq ($(OBJCOPY),) |
487 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) |
488 OPT_CFLAGS += -g0 -xs |
488 OPT_CFLAGS += -g0 -xs |
489 endif |
489 endif |
490 DEBUG_CFLAGS = -g |
490 DEBUG_CFLAGS = -g |
491 FASTDEBUG_CFLAGS = -g0 |
491 FASTDEBUG_CFLAGS = -g0 |
492 ifneq ($(OBJCOPY),) |
492 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) |
493 DEBUG_CFLAGS += -xs |
493 DEBUG_CFLAGS += -xs |
494 FASTDEBUG_CFLAGS += -xs |
494 FASTDEBUG_CFLAGS += -xs |
495 endif |
495 endif |
496 |
496 |
497 # Special global options for SS12 |
497 # Special global options for SS12 |