[tlbuild] Stripping the luatex binary

Peter Breitenlohner peb at mppmu.mpg.de
Thu Apr 7 10:13:20 CEST 2011


On Tue, 5 Apr 2011, Peter Breitenlohner wrote:

> Well, given such a substitute for "strip" this could be done by configure or
> maybe even from outside.

Hi Philipp and Taco,

1. can you please try to configure TL or the stand alone luatex (as far as I
know essentially a cut down version of TL) with

   configure STRIP='strip -S -x' ....

note this is not the same as having STRIP in the environment!  This is for
the bare configure, youd'd have to translate that for Build or build.sh. 
With this 'make install-strip' should use 'strip -S -x' for luatex.

2. in order to quickly verify that this works, you could go to texk/web2c/
in the build tree and do

   make STRIP='strip -S -x' DESTDIR=/tmp install-strip

in order to install under /tmp/

3. it seems to me that the whole problem is somewhat home made by lua and
caused by a slightly naive handling of extension modules.

In other cases (e.g., gtk input methods, pam modules) the procedure is

   a) load the extension module
   b) get address of the module's init function
   c) call the module's init function

where step (c) can pass a table of function (and data) pointers in the main
binary that the module might legitimately use.  That way the module doesn't
depend on any global symbol from the main binary.  Unfortunately that is not
the way lua works.

Regards
Peter Breitenlohner <peb at mppmu.mpg.de>


More information about the tlbuild mailing list