Skip to content

Commit

Permalink
chore(build): Disable RANLIB on already optimized module for all plat…
Browse files Browse the repository at this point in the history
…forms
  • Loading branch information
alerque committed Nov 2, 2024
1 parent 5707ad5 commit 8e95e55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions build-aux/pkg.nix
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ in stdenv.mkDerivation (finalAttrs: {
# `pdfinfo`, by using `false` we make sure that if it is expected during
# build time we would fail to build since we only provide it at test time.
"PDFINFO=false"
# We're using Cargo to build a shared library skipping some libtool bits
# and Nix mistakenly assumes are relevant and thinks it needs to cleanup.
"RANLIB=:"
#"--with-manual" In Nixpkgs we add this flag, here its not important enough
] ++ lib.optionals (!lua.pkgs.isLuaJIT) [
"--without-luajit"
Expand Down
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ QUE_PROGVAR([pdfinfo])
QUE_PROGVAR([sort])
QUE_PROGVAR([xargs])

# Disable ranlib to avoid it being run on our rusile.so module, already LTO
# optimized but libtool wants to relink it...
RANLIB=:

LT_PREREQ([2.2])
LT_INIT([dlopen])

Expand Down

0 comments on commit 8e95e55

Please sign in to comment.