Browse Source

add config example for keeping build path out of output debug info

Rich Felker 9 years ago
parent
commit
4afd97ae89
1 changed files with 6 additions and 0 deletions
  1. 6 0
      config.mak.dist

+ 6 - 0
config.mak.dist

@@ -55,6 +55,12 @@
 # GCC_CONFIG += --disable-libquadmath --disable-decimal-float
 # GCC_CONFIG += --disable-libquadmath --disable-decimal-float
 # GCC_CONFIG += --disable-multilib
 # GCC_CONFIG += --disable-multilib
 
 
+# You can keep the local build path out of your toolchain binaries and
+# target libraries with the following, but then gdb needs to be told
+# where to look for source files.
+
+# COMMON_CONFIG += --with-debug-prefix-map=$(PWD)=
+
 # The following are options needed to make certain targets work right.
 # The following are options needed to make certain targets work right.
 # They may be moved to main build logic rather than config.mak at some
 # They may be moved to main build logic rather than config.mak at some
 # point in the future.
 # point in the future.