xref: /netbsd-src/external/gpl3/gdb.old/dist/config/bootstrap-debug-lib.mk (revision bb16d22702ff57c46e117881dd16b08ca16721cc)
1*bb16d227Schristos# This BUILD_CONFIG option tests that target libraries built during
2*bb16d227Schristos# stage3 would have generated the same executable code if they were
3*bb16d227Schristos# compiled with -g0.
4*bb16d227Schristos
5*bb16d227Schristos# It uses -g0 rather than -gtoggle because -g is default on target
6*bb16d227Schristos# library builds, and toggling it where it's supposed to be disabled
7*bb16d227Schristos# breaks e.g. crtstuff on ppc.
8*bb16d227Schristos
9*bb16d227SchristosSTAGE1_TFLAGS += -g0 -fcompare-debug=
10*bb16d227SchristosSTAGE2_TFLAGS += -fcompare-debug=
11*bb16d227SchristosSTAGE3_TFLAGS += -fcompare-debug=-g0
12*bb16d227Schristosdo-compare = $(SHELL) $(srcdir)/contrib/compare-debug $$f1 $$f2
13