diff options
author | Christopher Faylor <me@cgf.cx> | 2005-08-08 02:27:43 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-08-08 02:27:43 +0000 |
commit | cbda22eb63ac8841ed3f4ac94e0782dab562717a (patch) | |
tree | c143d7b3d793ec88071d4df00b8c5a7289a3869b /winsup/cygwin/Makefile.in | |
parent | 1e0cb9ee0afd1bb6ba9674cb46989a1f87608be3 (diff) | |
download | cygnal-cbda22eb63ac8841ed3f4ac94e0782dab562717a.tar.gz cygnal-cbda22eb63ac8841ed3f4ac94e0782dab562717a.tar.bz2 cygnal-cbda22eb63ac8841ed3f4ac94e0782dab562717a.zip |
* dllfixdbg: New perl script.
* configure.in: Detect objcopy, objdump, strip.
* configure: Regenerate.
* Makefile.in: Pass target objcopy/objdump to new dllfixdbg script. Remove
previous perl check.
* cygwin.sc: Add .gnu_debuglink_overlay section for eventual replacement with
.gnu_debuglink section. Revert move of cygheap to end of image.
Diffstat (limited to 'winsup/cygwin/Makefile.in')
-rw-r--r-- | winsup/cygwin/Makefile.in | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in index e968f72a3..ebf5e2632 100644 --- a/winsup/cygwin/Makefile.in +++ b/winsup/cygwin/Makefile.in @@ -1,5 +1,5 @@ # Makefile.in for Cygwin. -# Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc. +# Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Red Hat, Inc. # # This file is part of Cygwin. # @@ -65,6 +65,9 @@ DLLTOOL:=@DLLTOOL@ WINDRES:=@WINDRES@ AS:=@AS@ NM:=@NM@ +OBJCOPY:=@OBJCOPY@ +OBJDUMP:=@OBJDUMP@ +STRIP:=@STRIP@ LDSCRIPT:=cygwin.sc # @@ -366,18 +369,13 @@ maintainer-clean realclean: clean # Rule to build cygwin.dll -$(TEST_DLL_NAME): $(LDSCRIPT) $(DLL_OFILES) $(DLL_IMPORTS) $(LIBSERVER) $(LIBC) $(LIBM) $(API_VER) Makefile winver_stamp +$(TEST_DLL_NAME): $(LDSCRIPT) dllfixdbg $(DLL_OFILES) $(DLL_IMPORTS) $(LIBSERVER) $(LIBC) $(LIBM) $(API_VER) Makefile winver_stamp $(CXX) $(CXXFLAGS) -Wl,--gc-sections $(nostdlib) -Wl,-T$(firstword $^) \ -Wl,--heap=0 -Wl,--out-implib,cygdll.a -shared -o $@ \ -e $(DLL_ENTRY) $(DEF_FILE) $(DLL_OFILES) version.o winver.o \ $(MALLOC_OBJ) $(LIBSERVER) $(LIBM) $(LIBC) \ -lgcc $(DLL_IMPORTS) - @$(NM) $@ | perl -Minteger -n -e '/^((0{8})?61[0-9a-f]+) A __cygheap_end/ and do {$$cygheap_end = $$1; exit;};\ - END { \ - die "ERROR: _cygheap_end not found in $@\n" unless defined($$cygheap_end); \ - die "ERROR: _cygheap_end is not on a 64k boundary (0x$$cygheap_end)!\n" if (hex($$cygheap_end) & 0xffff);\ - exit 0; \ - }' + @$(word 2,$^) $(OBJDUMP) $(OBJCOPY) $@ ${patsubst %0.dll,%1.dbg,$@} @ln -f $@ new-$(DLL_NAME) # Rule to build libcygwin.a |