diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-02 17:01:06 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-02 17:01:06 +0100 |
commit | 3dbea3aa84e66cb812011c4651114863b713f13c (patch) | |
tree | 7099d0e417cd551f24d197006fb673121ccdaefc /solenv | |
parent | 3e7afe0037d6d165abbeb32d4e5fb68ac8a9aeea (diff) |
Pass emit-debuginfo flags into special bridge compilations, if applicable
(i.e., if any of --enable-dbgutil, --enable-debug, or --enable-symbols);
introduce gb_DEBUGINFO_FLAGS for the platform-specific flags
Change-Id: I4306fa30ced57d40d5b1206a0b26a886411118ef
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/com_GCC_defs.mk | 6 | ||||
-rw-r--r-- | solenv/gbuild/platform/com_MSC_defs.mk | 6 | ||||
-rw-r--r-- | solenv/gbuild/platform/mingw.mk | 4 | ||||
-rw-r--r-- | solenv/gbuild/platform/solaris.mk | 4 | ||||
-rw-r--r-- | solenv/gbuild/platform/unxgcc.mk | 4 |
5 files changed, 13 insertions, 11 deletions
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk index 93b35a4884a3..9de88a2fee92 100644 --- a/solenv/gbuild/platform/com_GCC_defs.mk +++ b/solenv/gbuild/platform/com_GCC_defs.mk @@ -154,9 +154,9 @@ gb_COMPILERNOOPTFLAGS := -O0 -fstrict-aliasing -fstrict-overflow # Clang does not know -ggdb2 or some other options ifeq ($(HAVE_GCC_GGDB2),TRUE) -GGDB2=-ggdb2 +gb_DEBUGINFO_FLAGS=-ggdb2 else -GGDB2=-g2 +gb_DEBUGINFO_FLAGS=-g2 endif ifeq ($(HAVE_GCC_FINLINE_LIMIT),TRUE) @@ -171,7 +171,7 @@ ifeq ($(HAVE_GCC_FNO_DEFAULT_INLINE),TRUE) FNO_DEFAULT_INLINE=-fno-default-inline endif -gb_DEBUG_CFLAGS := $(GGDB2) $(FINLINE_LIMIT0) $(FNO_INLINE) +gb_DEBUG_CFLAGS := $(gb_DEBUGINFO_FLAGS) $(FINLINE_LIMIT0) $(FNO_INLINE) gb_DEBUG_CXXFLAGS := $(FNO_DEFAULT_INLINE) diff --git a/solenv/gbuild/platform/com_MSC_defs.mk b/solenv/gbuild/platform/com_MSC_defs.mk index be9d9234e400..478726a055d3 100644 --- a/solenv/gbuild/platform/com_MSC_defs.mk +++ b/solenv/gbuild/platform/com_MSC_defs.mk @@ -262,15 +262,17 @@ gb_LinkTarget_LDFLAGS := \ $(if $(findstring s,$(filter-out --%,$(MAKEFLAGS))),-nologo,) \ $(patsubst %,-LIBPATH:%,$(filter-out .,$(subst ;, ,$(subst \,/,$(ILIB))))) \ -gb_DEBUG_CFLAGS := -Zi +gb_DEBUGINFO_FLAGS := -Zi ifeq ($(VCVER),120) # Use -FS with VS2013: "Force Synchronous PDB Writes. Forces writes to # the program database (PDB) file--created by /Zi or /ZI--to be # serialized through MSPDBSRV.EXE" -gb_DEBUG_CFLAGS+=-FS +gb_DEBUGINFO_FLAGS+=-FS endif +gb_DEBUG_CFLAGS := $(gb_DEBUGINFO_FLAGS) + # this does not use CFLAGS so it is not overridable ifeq ($(gb_SYMBOL),$(true)) gb_CFLAGS+=$(gb_DEBUG_CFLAGS) diff --git a/solenv/gbuild/platform/mingw.mk b/solenv/gbuild/platform/mingw.mk index 7a22dff31f85..d4cf2e2882d8 100644 --- a/solenv/gbuild/platform/mingw.mk +++ b/solenv/gbuild/platform/mingw.mk @@ -75,8 +75,8 @@ gb_LinkTarget_CFLAGS := $(gb_CFLAGS) gb_LinkTarget_CXXFLAGS := $(gb_CXXFLAGS) ifeq ($(gb_SYMBOL),$(true)) -gb_LinkTarget_CXXFLAGS += $(GGDB2) -gb_LinkTarget_CFLAGS += $(GGDB2) +gb_LinkTarget_CXXFLAGS += $(gb_DEBUGINFO_FLAGS) +gb_LinkTarget_CFLAGS += $(gb_DEBUGINFO_FLAGS) endif gb_LinkTarget_INCLUDE +=\ diff --git a/solenv/gbuild/platform/solaris.mk b/solenv/gbuild/platform/solaris.mk index 5103169db891..4ab1ecf579c8 100644 --- a/solenv/gbuild/platform/solaris.mk +++ b/solenv/gbuild/platform/solaris.mk @@ -112,8 +112,8 @@ gb_LinkTarget_CFLAGS := $(gb_CFLAGS) $(gb_CFLAGS_WERROR) gb_LinkTarget_CXXFLAGS := $(gb_CXXFLAGS) $(gb_CFLAGS_WERROR) ifeq ($(gb_SYMBOL),$(true)) -gb_LinkTarget_CXXFLAGS += $(GGDB2) -gb_LinkTarget_CFLAGS += $(GGDB2) +gb_LinkTarget_CXXFLAGS += $(gb_DEBUGINFO_FLAGS) +gb_LinkTarget_CFLAGS += $(gb_DEBUGINFO_FLAGS) endif # note that `cat $(extraobjectlist)` is needed to build with older gcc versions, e.g. 4.1.2 on SLED10 diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk index bc269b39cff9..6cd206c711e8 100644 --- a/solenv/gbuild/platform/unxgcc.mk +++ b/solenv/gbuild/platform/unxgcc.mk @@ -108,8 +108,8 @@ gb_LinkTarget_CFLAGS := $(gb_CFLAGS) gb_LinkTarget_CXXFLAGS := $(gb_CXXFLAGS) ifeq ($(gb_SYMBOL),$(true)) -gb_LinkTarget_CXXFLAGS += $(GGDB2) -gb_LinkTarget_CFLAGS += $(GGDB2) +gb_LinkTarget_CXXFLAGS += $(gb_DEBUGINFO_FLAGS) +gb_LinkTarget_CFLAGS += $(gb_DEBUGINFO_FLAGS) endif # note that `cat $(extraobjectlist)` is needed to build with older gcc versions, e.g. 4.1.2 on SLED10 |