Re: [Hackage] #88: Stripping

#88: Stripping ---------------------------------+------------------------------------------ Reporter: bjorn@bringert.net | Owner: ijones Type: enhancement | Status: new Priority: high | Milestone: Component: Cabal library | Version: Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.4.2 | Platform: Linux ---------------------------------+------------------------------------------ Comment (by duncan): It seems that we cannot portably strip .a files. On solaris doing so removes the symbol index which is required for linking: {{{ If strip is executed on a common archive file (see ar(3HEAD)) in addition to processing the members, strip will remove the archive symbol table. The archive symbol table must be restored by executing the ar(1) command with the -s option before the archive can be linked by the ld(1) com- mand. strip will produce appropriate warning messages when this situation arises. }}} With GNU strip it seems to be ok and only remove stuff from within the individual .o files within the .a archive. The `install` program that automake uses only seems to strip binary executables, not library archives so we should probably do the same. If you think otherwise then complain now. So I suggest we only strip on installation, that we do it by default and add an install flag to turn it off (eg some distro packaging systems prefer to manage striping themselves). -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/88#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage