nixpkgs/pkgs
Artturin a2c61752fb lua.pkgs.luarocks: fix usage in cross-compilation
copy of comment 8d878e4981 (r954257465)

with this patch the build of luasystem fails

LD=ld
```
ld  -shared -o system/core.so src/core.o src/compat.o src/time.o -L/nix/store/...-glibc-2.35-163/lib -Wl,-rpath,/nix/store/...-glibc-2.35-163/lib -lrt
/nix/store/vhf2cr6immz4qdxd83y025fnxim8mmfg-binutils-2.38/bin/ld: unrecognized option '-Wl,-rpath,/nix/store/...-glibc-2.35-163/lib'
/nix/store/vhf2cr6immz4qdxd83y025fnxim8mmfg-binutils-2.38/bin/ld: use the --help option for usage information

Error: Build error: Failed compiling module system/core.so
```

LD=gcc
```
gcc  -shared -o system/core.so src/core.o src/compat.o src/time.o -L/nix/store/...-glibc-2.35-163/lib -Wl,-rpath,/nix/store/...-glibc-2.35-163/lib -lrt
```

`-Wl,rpath... -lrt` are added by ecb63347bf/src/luarocks/build/builtin.lua (L249-L250)
2022-08-26 20:55:30 +03:00
..
applications lua-packages: try splicing 2022-08-26 20:04:02 +03:00
build-support Merge staging-next into staging 2022-08-26 12:02:32 +00:00
common-updater
data Merge master into staging-next 2022-08-26 06:13:53 +00:00
desktops gnome.evolution-data-server: 3.44.3 -> 3.44.4 2022-08-25 18:29:11 +03:00
development lua.pkgs.luarocks: fix usage in cross-compilation 2022-08-26 20:55:30 +03:00
games
misc lua-packages: try splicing 2022-08-26 20:04:02 +03:00
os-specific Merge master into staging-next 2022-08-26 12:01:48 +00:00
pkgs-lib
servers lua-packages: try splicing 2022-08-26 20:04:02 +03:00
shells oh-my-zsh: 2022-08-10 -> 2022-08-14 (#187446) 2022-08-24 11:14:56 -04:00
stdenv Merge master into staging-next 2022-08-25 18:01:10 +00:00
test
tools Merge staging-next into staging 2022-08-26 12:02:32 +00:00
top-level lua-packages: try splicing 2022-08-26 20:04:02 +03:00