This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fwd: [MinGW-dvlpr] Fwd: [ANNOUNCEMENT] Updated: mingw-runtime-3.8-1


Included below is my proposal to address the stripping of the w32api
and mingw-runtime after running it by the mingw developers.  Is the
proposed solution acceptable?

Chris

---------- Forwarded message ----------
From: Chris Sutcliffe <ir0nh34d@gmail.com>
Date: 15-Aug-2005 20:30
Subject: Re: [MinGW-dvlpr] Fwd: [ANNOUNCEMENT] Updated: mingw-runtime-3.8-1
To: mingw-dvlpr@lists.sourceforge.net


> > > > > I've made a new version of the mingw runtime headers and libraries
> > > > > available for download. A list of what has changed is attached.
> > > >
> > > > This version doens't seem to be stripped.

<snip>

> > I'm thinking of adding the '-s' to the install command,
> > however this would strip all binaries produced, regardless if
> > they ran with the dist target or not, and I'm not sure if
> > this is a good thing.

<snip>

> Don't do that.  If you apply strip-all to import libs they are useless.
> I belive that strip -g is safe.

I've added the strip command to the bindist section of the Makefile.in
for the mingw runtime:

bindist:
        rm -rf $(distdir)
        mkdir $(distdir)
        chmod 755 $(distdir)
        $(MAKE) install prefix=$(shell pwd)/$(distdir)$(dist_prefix)
        strip -g $(distdir)/bin/*
        strip -g $(distdir)/lib/*
        rm -f $(distdir).tar.gz
        cd $(distdir); \
        $(TAR) $(TARFLAGS)cf ../$(distdir)$(TARFILEEXT) *

Similarly for the w32api Makefile.in:

bindist:
        rm -rf $(distdir)
        mkdir $(distdir)
        chmod 755 $(distdir)
        $(MAKE) install prefix=`pwd`/$(distdir)$(dist_prefix)
exec_prefix=`pwd`/$(distdir)$(dist_prefix)
        strip -g $(distdir)/lib/*
        rm -f $(distdir)$(TARFILEEXT)
        cd $(distdir); $(TAR) $(TARFLAGS)cf ../$(distdir)$(TARFILEEXT) *

I've tested the w32api dist created by this change, and everything
I've tried to compile works fine.  Are these changes appropriate?

Chris

--
Chris Sutcliffe
ir0nh34d@gmail.com
http://emergedesktop.org
http://ironhead.modblog.com


-- 
Chris Sutcliffe
ir0nh34d@gmail.com
http://emergedesktop.org
http://ironhead.modblog.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]