Restore functionality of 'install' target. (#10)

Previous change (update from gcc trunk) broke 'make install'; this
corrects the problem.
This commit is contained in:
Than McIntosh
2018-01-15 15:06:55 -05:00
committed by Ian Lance Taylor
parent 17f687d2b9
commit ee9cd27e5e
2 changed files with 73 additions and 50 deletions

View File

@@ -35,7 +35,7 @@ AM_CFLAGS = $(EXTRA_FLAGS) $(WARN_FLAGS) $(PIC_FLAG)
include_HEADERS = backtrace.h backtrace-supported.h
noinst_LTLIBRARIES = libbacktrace.la
lib_LTLIBRARIES = libbacktrace.la
libbacktrace_la_SOURCES = \
backtrace.h \
@@ -137,8 +137,8 @@ if HAVE_OBJCOPY_DEBUGLINK
TESTS += dtest
dtest: btest
$(OBJCOPY) --only-keep-debug btest btest.debug
$(OBJCOPY) --strip-debug --add-gnu-debuglink=btest.debug btest dtest
$(OBJCOPY) --only-keep-debug .libs/btest btest.debug
$(OBJCOPY) --strip-debug --add-gnu-debuglink=btest.debug .libs/btest dtest
endif HAVE_OBJCOPY_DEBUGLINK