Opened 8 years ago

Closed 2 years ago

#7557 closed enhancement (wontfix)

Create statically linked python interpreter with depdendencies

Reported by: hellais Owned by: hellais
Priority: Medium Milestone:
Component: Archived/Ooni Version:
Severity: Normal Keywords: ooni_build_system, ooni_wishlist, archived-closed-2018-07-04
Cc: aagbsn Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


To facilitate the running of tests on machines that run outdated versions of python (e.x. planetlab) we want a way to compile python 2.7 as statically linked binary.

I did some cursory research and testing to get this working, but have reached the point where I can build a python binary that is statically linked, but it does not include all the compiled modules required by ooniprobe.

I my machine I did so with:

CC="gcc -m32" LDFLAGS="-L/lib32 -L/usr/lib32 -L`pwd`/lib32 -Wl,-rpath,/lib32 -Wl,-rpath,/usr/lib32" ./configure LDFLAGS="-static -static-libgcc" CPPFLAGS="-static"

This is required because it's 64 bit on a 32bit machine it's probably sufficient to do

./configure LDFLAGS="-static -static-libgcc" CPPFLAGS="-static"

Here are a collection of links that may be useful.

Child Tickets

Change History (5)

comment:3 Changed 8 years ago by hellais

Keywords: ooni_wishlist added

comment:4 Changed 3 years ago by teor

Severity: Normal

Set all open tickets without a severity to "Normal"

comment:5 Changed 2 years ago by teor

Keywords: archived-closed-2018-07-04 added
Resolution: wontfix
Status: newclosed

Close all tickets in archived components

Note: See TracTickets for help on using tickets.