Seite 1 von 1

Python statisch kompilieren (Linux)

Verfasst: Dienstag 2. August 2005, 11:54
von hiasl
Hallo,

weiß jemand ob und wie ich Python 2.4.1 statisch kompilieren kann? Ein
./configure --with-ldflags=-static
hat nicht funktioniert...

Besten Dank und Gruß
Matthias

Verfasst: Dienstag 2. August 2005, 15:42
von ProgChild
Die Libraries, die du statisch linken willst, musst du vorher auch als statisch compilieren...

Re: Python statisch kompilieren (Linux)

Verfasst: Montag 15. August 2005, 14:19
von Joghurt
hiasl hat geschrieben:./configure --with-ldflags=-static
Wenn das Configure-Script nicht --with-ldflags hat, was ich annehme, passiert auch nichts. Du kannst es mal mit

Code: Alles auswählen

rm programmdatei
make LDFLAGS=-static
probieren, dann werden aber alle Libraries statisch gelinkt.