unzip: no-lchmod build flag
This commit is contained in:
parent
0083a683d7
commit
5bb06a6970
1 changed files with 4 additions and 1 deletions
|
@ -60,7 +60,10 @@ stdenv.mkDerivation rec {
|
|||
"generic"
|
||||
"D_USE_BZ2=-DUSE_BZIP2"
|
||||
"L_BZ2=-lbz2"
|
||||
];
|
||||
]
|
||||
# `lchmod` is not available on Linux, so we remove it to fix "not supported" errors (when the zip file contains symlinks).
|
||||
# Alpine (musl) and Debian (glibc) also add this flag.
|
||||
++ lib.optionals stdenv.isLinux [ "LOCAL_UNZIP=-DNO_LCHMOD" ];
|
||||
|
||||
preConfigure = ''
|
||||
sed -i -e 's@CF="-O3 -Wall -I. -DASM_CRC $(LOC)"@CF="-O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(LOC)"@' unix/Makefile
|
||||
|
|
Loading…
Reference in a new issue