summary refs log tree commit diff
diff options
context:
space:
mode:
authorstorvik <petterstorvik@gmail.com>2021-10-26 11:01:26 +0200
committerstorvik <petterstorvik@gmail.com>2021-10-26 11:01:26 +0200
commit219130a2f03c0f18a3f9976c319cc260eaf126c0 (patch)
tree1d1a4d9148930f58ae36a71fb5da7567949475a9
parent23f71e9427c7cd2a6f87a167b4f6dc170b4431df (diff)
downloadnixpkgs-219130a2f03c0f18a3f9976c319cc260eaf126c0.tar
nixpkgs-219130a2f03c0f18a3f9976c319cc260eaf126c0.tar.gz
nixpkgs-219130a2f03c0f18a3f9976c319cc260eaf126c0.tar.bz2
nixpkgs-219130a2f03c0f18a3f9976c319cc260eaf126c0.tar.lz
nixpkgs-219130a2f03c0f18a3f9976c319cc260eaf126c0.tar.xz
nixpkgs-219130a2f03c0f18a3f9976c319cc260eaf126c0.tar.zst
nixpkgs-219130a2f03c0f18a3f9976c319cc260eaf126c0.zip
sbcl: compile with linkable runtime
-rw-r--r--pkgs/development/compilers/sbcl/common.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/compilers/sbcl/common.nix b/pkgs/development/compilers/sbcl/common.nix
index d81d1bf8f63..d2450315eb5 100644
--- a/pkgs/development/compilers/sbcl/common.nix
+++ b/pkgs/development/compilers/sbcl/common.nix
@@ -3,6 +3,7 @@
 { lib, stdenv, fetchurl, fetchpatch, writeText, sbclBootstrap
 , sbclBootstrapHost ? "${sbclBootstrap}/bin/sbcl --disable-debugger --no-userinit --no-sysinit"
 , threadSupport ? (stdenv.isi686 || stdenv.isx86_64 || "aarch64-linux" == stdenv.hostPlatform.system || "aarch64-darwin" == stdenv.hostPlatform.system)
+, linkableRuntime ? (stdenv.isi686 || stdenv.isx86_64)
 , disableImmobileSpace ? false
   # Meant for sbcl used for creating binaries portable to non-NixOS via save-lisp-and-die.
   # Note that the created binaries still need `patchelf --set-interpreter ...`
@@ -74,6 +75,7 @@ stdenv.mkDerivation rec {
 
   enableFeatures = with lib;
     optional threadSupport "sb-thread" ++
+    optional linkableRuntime "sb-linkable-runtime" ++
     optional stdenv.isAarch32 "arm";
 
   disableFeatures = with lib;