Skip to content

Rust-overlay seem to confuse $NIX_LDFLAGS when cross-compiling? #40

@abbec

Description

@abbec

I have an issue that I cannot quite make sense of. We updated this overlay from 0bcf4e7 to be2d768 and that changed the content in $NIX_LDFLAGS somehow?

0bcf4e7:

echo $NIX_LDFLAGS
-L/nix/store/r5y3drh0fdgmjyibgs6gxqvv457v5vwr-mcfgthreads-git-x86_64-w64-mingw32/lib -L/nix/store/glghra1n3r22zpbnfq6pgizn0zy02rdl-pthreads-w32-2.9.1-x86_64-w64-mingw32/lib

be2d768:

 echo $NIX_LDFLAGS
-liconv -L/nix/store/1wv35rsgcrwjz4jnqs3kq77k6d3qagaf-libc++-7.1.0/lib -L/nix/store/1wv35rsgcrwjz4jnqs3kq77k6d3qagaf-libc++-7.1.0/lib -L/nix/store/wahi8q1ybh9n805zbavs6ch4i8mfpzgy-libc++abi-7.1.0/lib -L/nix/store/wahi8q1ybh9n805zbavs6ch4i8mfpzgy-libc++abi-7.1.0/lib -L/nix/store/6bw7mnz3yp2bk2qvq4xi7vj0xz0h63mm-compiler-rt-7.1.0/lib -L/nix/store/6bw7mnz3yp2bk2qvq4xi7vj0xz0h63mm-compiler-rt-7.1.0/lib -L/nix/store/2jlggnhkjnpw938ak2w6rljlak8dzjbz-libiconv-osx-10.12.6/lib -L/nix/store/2jlggnhkjnpw938ak2w6rljlak8dzjbz-libiconv-osx-10.12.6/lib -L/nix/store/r5y3drh0fdgmjyibgs6gxqvv457v5vwr-mcfgthreads-git-x86_64-w64-mingw32/lib -L/nix/store/r5y3drh0fdgmjyibgs6gxqvv457v5vwr-mcfgthreads-git-x86_64-w64-mingw32/lib -L/nix/store/glghra1n3r22zpbnfq6pgizn0zy02rdl-pthreads-w32-2.9.1-x86_64-w64-mingw32/lib -L/nix/store/glghra1n3r22zpbnfq6pgizn0zy02rdl-pthreads-w32-2.9.1-x86_64-w64-mingw32/lib

The latter erroneously contains build platform dependencies. How can this overlay change that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions