!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

220 Members
70 Servers

Load older messages


SenderMessageTime
27 Oct 2024
@reckenrode:matrix.orgRandy Eckenrode *

I think this is what I wanted.

Add path searchdir to the list of paths that ld will search for archive libraries and ld control scripts. You may use this option any number of times. The directories are searched in the order in which they are specified on the command line. Directories specified on the command line are searched before the default directories. All -L options apply to all -l options, regardless of the order in which the options appear. -L options do not affect how ld searches for a linker script unless -T option is specified.

If searchdir begins with = or $SYSROOT, then this prefix will be replaced by the sysroot prefix, controlled by the ‘--sysroot’ option, or specified when the linker is configured.

22:25:34
@reckenrode:matrix.orgRandy Eckenrode

binutils’s ld interprets -L/usr/lib as /usr/lib always. ld64 does not. What does lld do?

22:25:58
@emilazy:matrix.orgemilyI wonder if this stuff is conditioned based on host or target platform 🙃22:25:59
@emilazy:matrix.orgemily(for e.g. Clang)22:26:15
@emilazy:matrix.orgemily (uh, -I is definitely interpreted relative to $SDKROOT with Clang on Darwin, right?) 22:26:42
@reckenrode:matrix.orgRandy EckenrodeYes.22:27:23
@reckenrode:matrix.orgRandy EckenrodeI’m pretty sure.22:27:43
@emilazy:matrix.orgemilyit would be funny if the solution ends up being "ask toolchains to allow us to opt-in to the weird Darwin prefixing behaviour on other platforms".22:27:50
@emilazy:matrix.orgemilydon't ever say Darwin support does nothing for Nixpkgs!22:27:59
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/35176822:48:34
@emilazy:matrix.orgemily stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages22:50:00
@artturin:matrix.orgArtturinWhoops that's for a separate commit 🤫22:50:35
@emilazy:matrix.orgemilyit's too late. you made me see that and I'm not going to be able to sleep tonight22:50:56
@emilazy:matrix.orgemily maybe we should expose something like this in the system interface – .emulator is constraint by having to be an actual executable, which is unfortunate when all you want to do is know how to adapt stuff. though I guess it only matters for sufficiently downstream stuff 22:51:39
@emilazy:matrix.orgemily we could just replace execline with a vendored package that's one line of C to call exec. 22:51:52
@emilazy:matrix.orgemily then execline wouldn't rebuild as much stuff and we wouldn't be adding any meaningful dependencies to .emulator use. 22:52:20
@emilazy:matrix.orgemilywhile keeping the uniform interface.22:52:34
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/32407122:52:38
@emilazy:matrix.orgemilyyeah22:53:41
@emilazy:matrix.orgemily but we don't need everything else in execline. 22:53:47
@emilazy:matrix.orgemilywe don't even need its extra flags.22:54:02
@emilazy:matrix.orgemily we can just write our own pkgs.exec or whatever. 22:54:11
@emilazy:matrix.orgemily (technically .emulator also behaves quite badly if you want to execute a program starting with a -, we should probably be wrapping that stuff) 22:55:09
@emilazy:matrix.orgemily oh, it looks like tie originally wrote that program and it got bikeshedded away. 22:57:53
@artturin:matrix.orgArtturinI commented22:58:17
@emilazy:matrix.orgemily right. well, Alyssa's proposal seems reasonable to me absent the closure size increase, I'm mostly just surprised that execline pulls in so much 22:59:06
@emilazy:matrix.orgemilyconsidering it's a pile of barebones C22:59:09
@emilazy:matrix.orgemily what does it pull in? it only seems to depend on skalibs. 22:59:48
@emilazy:matrix.orgemilywhich doesn't depend on anything.22:59:51
@emilazy:matrix.orgemily ha, tie also pointed out the - thing 23:00:45

Show newer messages


Back to Room ListRoom Version: 9