]> cygwin.com Git - cygwin-apps/setup.git/commitdiff
Strip symbols to setup.dbg
authorJon Turney <jon.turney@dronecode.org.uk>
Tue, 22 Nov 2016 16:05:58 +0000 (16:05 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Wed, 7 Dec 2016 12:45:37 +0000 (12:45 +0000)
As noted in https://cygwin.com/ml/cygwin/2016-11/msg00254.html debugging the
distributed setup executable is a lost cause at the moment.  Preserve
symbols so it's not quite as hopeless.

Note: to debug the distributed setup executable with gdb, it will be
necessary to decompress the setup executable with 'upx -d', and, if the .dbg
file has been renamed to match the renamed setup executable, explicitly load
it into gdb with the 'symbol-file' command.

Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Makefile.am
configure.ac

index 3498c9da919432a6a5414c849c929f070ed3470a..12ad5cad801e0be8c4264c4b2b277f5e5b0b2365 100644 (file)
@@ -297,7 +297,10 @@ setup-src:
 .PHONY:        strip upx
 
 strip: all
-       $(STRIP) -s setup$(EXEEXT)
+       $(OBJCOPY) --add-gnu-debuglink=/dev/null --only-keep-debug setup$(EXEEXT) setup.dbg
+       $(OBJCOPY) --strip-all setup$(EXEEXT)
+       $(OBJCOPY) --add-gnu-debuglink=setup.dbg setup$(EXEEXT) setup$(EXEEXT)
+
 upx:   strip
        @if [ -e `which upx` ]; then\
                upx --best --lzma setup$(EXEEXT) ;\
index 32a3b0179bcb85782b8a91be866a5c92391b6fbd..42ad3e2ddbe468d8d336f46624ea91a58872bd36 100644 (file)
@@ -48,20 +48,8 @@ AC_CANONICAL_BUILD
 AC_CANONICAL_HOST
 AC_PROG_LIBTOOL
 
-dnl AC_CHECK_TOOL(AR, ar, ar)
-dnl AC_SUBST(AR)
-dnl AC_CHECK_TOOL(AS, as, as)
-dnl AC_SUBST(AS)
-dnl AC_CHECK_TOOL(RANLIB, ranlib, ranlib)
-dnl AC_SUBST(RANLIB)
-dnl AC_CHECK_TOOL(LD, ld, ld)
-dnl AC_SUBST(LD)
-dnl AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
-dnl AC_SUBST(DLLTOOL)
 AC_CHECK_TOOL(WINDRES, windres, windres)
-AC_SUBST(WINDRES)
-dnl AC_CHECK_TOOL(OBJCOPY, objcopy, objcopy)
-dnl AC_SUBST(OBJCOPY)
+AC_CHECK_TOOL(OBJCOPY, objcopy, objcopy)
 
 AC_CHECK_HEADERS(alloca.h \
                 errno.h \
This page took 0.034206 seconds and 5 git commands to generate.