Skip to content

Commit

Permalink
libjxl: Fix static compilation
Browse files Browse the repository at this point in the history
Co-authored-by: Alyssa Ross <[email protected]>
  • Loading branch information
dali99 and alyssais committed Aug 15, 2022
1 parent 7c86ef1 commit 49cc0e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/development/libraries/libjxl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,14 @@ stdenv.mkDerivation rec {
pkg-config
] ++ lib.optionals buildDocs [
asciidoc
graphviz
doxygen
python3
];

depsBuildBuild = lib.optionals buildDocs [
graphviz
];

# Functionality not currently provided by this package
# that the cmake build can apparently use:
# OpenGL/GLUT (for Examples -> comparison with sjpeg)
Expand Down Expand Up @@ -125,6 +128,8 @@ stdenv.mkDerivation rec {
# * the `gdk-pixbuf` one, which allows applications like `eog` to load jpeg-xl files
# * the `gimp` one, which allows GIMP to load jpeg-xl files
# "-DJPEGXL_ENABLE_PLUGINS=ON"
] ++ lib.optionals stdenv.hostPlatform.isStatic [
"-DJPEGXL_STATIC=ON"
];

LDFLAGS = lib.optionalString stdenv.hostPlatform.isRiscV "-latomic";
Expand Down

0 comments on commit 49cc0e1

Please sign in to comment.