< prev index next >

common/autoconf/spec.gmk.in

Print this page

        

@@ -390,10 +390,26 @@
 # Options for generating debug symbols
 ENABLE_DEBUG_SYMBOLS:=@ENABLE_DEBUG_SYMBOLS@
 CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
 CXXFLAGS_DEBUG_SYMBOLS:=@CXXFLAGS_DEBUG_SYMBOLS@
 ZIP_DEBUGINFO_FILES:=@ZIP_DEBUGINFO_FILES@
+DEBUG_SYMBOLS:=@DEBUG_SYMBOLS@
+
+ifeq ($(DEBUG_SYMBOLS), none)
+  ENABLE_DEBUG_SYMBOLS := false
+else ifeq ($(DEBUG_SYMBOLS), internal)
+  ENABLE_DEBUG_SYMBOLS := false  # -g option only.
+  DEBUG_BINARIES := true
+  STRIP_POLICY := no_strip
+  STRIP :=
+else ifeq ($(DEBUG_SYMBOLS), external)
+  ENABLE_DEBUG_SYMBOLS := true
+  ZIP_DEBUGINFO_FILES := false
+else ifeq ($(DEBUG_SYMBOLS), zipped)
+  ENABLE_DEBUG_SYMBOLS := true
+  ZIP_DEBUGINFO_FILES := true
+endif
 
 #
 # Compress (or not) jars
 COMPRESS_JARS=@COMPRESS_JARS@
 
< prev index next >