Skip to content

Commit

Permalink
[JK] Portable/Relocatable Python Linking
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswanthikolla committed May 19, 2024
1 parent 521be20 commit ae2abf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builders/ubuntu-python-builder.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class UbuntuPythonBuilder : NixPythonBuilder {
$pythonBinariesLocation = $this.GetFullPythonToolcacheLocation()

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

0 comments on commit ae2abf8

Please sign in to comment.