nixpkgs/pkgs/development
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
..
androidndk-pkgs
beam-modules Merge pull request #188182 from ehamberg/fix-redbug-on-opt-25 2022-08-25 21:08:54 -03:00
bower-modules/generic
chez-modules
compilers Merge master into staging-next 2022-08-26 12:01:48 +00:00
coq-modules
dhall-modules
dotnet-modules
em-modules/generic
embedded
gnuradio-modules
guile-modules
haskell-modules
idris-modules
interpreters lua-packages: try splicing 2022-08-26 20:04:02 +03:00
java-modules
libraries Merge staging-next into staging 2022-08-26 12:02:32 +00:00
lisp-modules
lisp-modules-new
lua-modules lua-packages: try splicing 2022-08-26 20:04:02 +03:00
misc
mobile
nim-packages
node-packages
ocaml-modules Merge pull request #184411 from r-ryantm/auto-update/ocaml4.13.1-camlp-streams 2022-08-25 10:17:31 +02:00
octave-modules
perl-modules
pharo
php-packages
python2-modules
python-modules Merge master into staging-next 2022-08-26 12:01:48 +00:00
quickemu
r-modules
ruby-modules
scheme-modules/scheme-bytestructures
tools lua.pkgs.luarocks: fix usage in cross-compilation 2022-08-26 20:55:30 +03:00
web Merge master into staging-next 2022-08-25 12:01:30 +00:00