s4-python: put the python shared libs on a severe diet
authorAndrew Tridgell <tridge@samba.org>
Sat, 3 Oct 2009 00:57:31 +0000 (10:57 +1000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 3 Oct 2009 00:57:31 +0000 (10:57 +1000)
commitfa4019d1614d8dcfb7ae1496018757f4e7226df2
tree7ba348ae42d82cbbd15418b49a57576730fd6bd8
parent2ab27d78b0f2c10a6d632015090872a0f6542add
s4-python: put the python shared libs on a severe diet

Our shared libs in s4 are rather bloated. Each shared lib links in
just about all our client code, making them all huge.

This hack works around the problem for the python shared libs, linking
in just the minimum code to each shared lib using a shell script
linker hack, then linking all those to glue.so

Jelmer, I know this isn't the right approach, but I'm hoping it may
inspire a better fix.

This change reduces the total size of bin/python/ from 476M to 28M on
my system

I suspect we can do the same to bin/shared/*
source4/build/make/object_first.sh [new file with mode: 0755]
source4/build/make/object_list.sh [new file with mode: 0755]
source4/build/make/python.mk