Re: LLVM strip -x fails - Mailing list pgsql-hackers

From Tom Lane
Subject Re: LLVM strip -x fails
Date
Msg-id 3362222.1682096423@sss.pgh.pa.us
Whole thread Raw
In response to Re: LLVM strip -x fails  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Responses Re: LLVM strip -x fails
List pgsql-hackers
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> On 20.04.23 17:33, Andres Freund wrote:
>> Peter, it's unlikely given the timeframe, but do you happen to remember why
>> you specified -x when stripping static libs?

> I suspect this was copied from GNU Libtool.  Libtool still has that but 
> later changed the stripping of static libraries on darwin to "strip -S". 
>   Maybe should adopt that.

I tried that, but it seems strictly worse on output file size:

$ ll lib*/libpq.a
-rw-r--r--  1 tgl  staff  715312 Apr 21 12:52 lib-no-strip/libpq.a
-rw-r--r--  1 tgl  staff  209984 Apr 21 12:51 lib-strip-S/libpq.a
-rw-r--r--  1 tgl  staff  208456 Apr 21 12:50 lib-strip-x/libpq.a
$ ll lib*/libecpg.a
-rw-r--r--  1 tgl  staff  324952 Apr 21 12:52 lib-no-strip/libecpg.a
-rw-r--r--  1 tgl  staff  102752 Apr 21 12:51 lib-strip-S/libecpg.a
-rw-r--r--  1 tgl  staff  102088 Apr 21 12:50 lib-strip-x/libecpg.a

If you use both -x and -S, you get the same file sizes as with -x
alone.  Not sure why we should change anything here.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Correct the documentation for work_mem
Next
From: Sandro Santilli
Date:
Subject: Re: Order changes in PG16 since ICU introduction