Skip to content

Commit ae2abf8

Browse files
[JK] Portable/Relocatable Python Linking
1 parent 521be20 commit ae2abf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builders/ubuntu-python-builder.psm1

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class UbuntuPythonBuilder : NixPythonBuilder {
3131
$pythonBinariesLocation = $this.GetFullPythonToolcacheLocation()
3232

3333
### To build Python with SO we must pass full path to lib folder to the linker
34-
$env:LDFLAGS="-Wl,--rpath=${pythonBinariesLocation}/lib"
34+
$env:LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'"
3535
$configureString = "./configure"
3636
$configureString += " --prefix=$pythonBinariesLocation"
3737
$configureString += " --enable-shared"

0 commit comments

Comments
 (0)