Skip to content

Commit

Permalink
octavePackages.ltfat: Set LD_LIBRARY_PATH for building packages
Browse files Browse the repository at this point in the history
Some Octave packages ship C/C++/Fortran code that needs to be compiled
and linked against Octave's internal shared objects. Previously, ld
could not find these packages because $LD_LIBRARY_PATH was empty.
  • Loading branch information
KarlJoad committed Dec 26, 2024
1 parent 1557114 commit 97d00ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/interpreters/octave/build-octave-package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ stdenv.mkDerivation (
else
preBuild;

# Add Octave's shared objects to ld library path for some packages which
# need to link their C/C++/Fortran code against Octave's internals.
LD_LIBRARY_PATH = lib.makeLibraryPath nativeBuildInputs';

buildPhase = ''
runHook preBuild
Expand Down

0 comments on commit 97d00ed

Please sign in to comment.