Hi,
I want to add support generating .debug files that are linked from .so files so that we can have one set of binaries, no matter whether a person is a developer or end-user and yet have no additional disk space or bandwidth costs.
This is really just a RFC about changes I've made to the DLL makefiles, before I start copying and pasting them to the other areas. Am I on the right lines here? Do I need to add a configure check for objcopy? Do I need a configure check for the --add-gnu-debuglink option?
Rob
Index: dlls/Makedll.rules.in =================================================================== RCS file: /home/wine/wine/dlls/Makedll.rules.in,v retrieving revision 1.69 diff -u -p -r1.69 Makedll.rules.in --- dlls/Makedll.rules.in 19 Oct 2004 23:06:12 -0000 1.69 +++ dlls/Makedll.rules.in 24 Nov 2004 18:16:44 -0000 @@ -24,6 +24,14 @@ all: $(MODULE)$(DLLEXT) $(SUBDIRS) @MAKE_RULES@ +# Rules for .debug files + +$(MODULE)$(DLLEXT).debug: $(MODULE)$(DLLEXT) + objcopy --only-keep-debug $< $@ + objcopy --strip-debug $< + objcopy --add-gnu-debuglink=$@ $< + touch $@ + # Rules for .so files $(MODULE).so: $(MAINSPEC) $(RC_SRCS:.rc=.res) $(ALL_OBJS) $(IMPORTLIBS) Makefile.in @@ -90,6 +98,10 @@ $(ALL_SPECS16:%=_uninstall_/%): dummy install_lib: $(MODULE)$(DLLEXT) $(MKINSTALLDIRS) $(dlldir) $(INSTALL_PROGRAM) $(MODULE)$(DLLEXT) $(dlldir)/$(MODULE)$(DLLEXT) + +install_debuginfo: $(MODULE)$(DLLEXT).debug + $(MKINSTALLDIRS) $(dlldir) + $(INSTALL_DATA) $(MODULE)$(DLLEXT).debug $(dlldir)/$(MODULE)$(DLLEXT).debug install:: install_lib @WIN16_INSTALL@