forked from auxolotl/foundation
fix python zlib (#6)
Right now when running the `stage1-python` binary and attempting to import zlib module, you get ``` >>> import zlib Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: Error loading shared library libz.so.1: No such file or directory (needed by .../lib/python3.12/lib-dynload/zlib.cpython-312-i386-linux-gnu.so) ``` By linking with rpath instead, the resulting binary knows the exact path to look for zlib Reviewed-on: auxolotl/foundation#6 Co-authored-by: Victor Fuentes <vlinkz@snowflakeos.org> Co-committed-by: Victor Fuentes <vlinkz@snowflakeos.org>
This commit is contained in:
parent
032292458a
commit
7344532f72
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ in
|
|||
export CC=musl-gcc
|
||||
export C_INCLUDE_PATH="${stage1.zlib.package}/include"
|
||||
export LIBRARY_PATH="${stage1.zlib.package}/lib"
|
||||
export LD_LIBRARY_PATH="$LIBRARY_PATH"
|
||||
export LDFLAGS="-Wl,-rpath,${stage1.zlib.package}/lib"
|
||||
bash ./configure \
|
||||
--prefix=$out \
|
||||
--build=${platform.build} \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue