!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

576 Members
127 Servers

Load older messages


SenderMessageTime
18 Jul 2025
@dramforever:matrix.orgdramforever okay so HOST_PKG_CONFIG is just doing nothing...? 20:52:49
@emilazy:matrix.orgemily well it's doing the same thing as PKG_CONFIG in non-cross builds 20:53:03
@emilazy:matrix.orgemilyfor cross builds it's never used, I guess.20:53:11
@emilazy:matrix.orgemilyor well20:53:21
@dramforever:matrix.orgdramforeverah20:53:22
@emilazy:matrix.orgemilyit's used in the build scripts20:53:23
@emilazy:matrix.orgemilyor, uh20:53:27
@emilazy:matrix.orgemilyI mean, it's used when targeting … augh20:53:35
@emilazy:matrix.orgemilyyou know what I mean. hopefully20:53:41
@dramforever:matrix.orgdramforever wanna get angry? linux makefiles take HOSTPKG_CONFIG 20:53:56
@emilazy:matrix.orgemilyit seems like the library will fundamentally only think about the host ("target") platform20:54:22
@emilazy:matrix.orgemilywhen run in a build script for a package targeting that host platform20:54:30
@emilazy:matrix.orgemilyeven though there seems like reason you might want to care about build platform deps in such a build script too20:54:42
@dramforever:matrix.orgdramforeverwait so if i'm building a build script dep20:55:04
@dramforever:matrix.orgdramforever what do i get for "HOST" and "TARGET" 20:55:16
@emilazy:matrix.orgemilythe same thing20:55:20
@emilazy:matrix.orgemilythe build platform20:55:25
@emilazy:matrix.orgemily so it will notice they're the same and look at HOST_PKG_CONFIG and PKG_CONFIG_[buildPlatform] 20:55:38
@emilazy:matrix.orgemilyI really need to find the person who came up with build/host/target and take them to the Hague or something20:56:03
@emilazy:matrix.orgemilyI don't care what they call build and host as long as they rename target to like if-you-are-not-writing-a-compiler-and-you-say-this-word-you-have-made-a-mistake20:56:37
@dramforever:matrix.orgdramforever so if non-cross, it looks at HOST_PKG_CONFIG and PKG_CONFIG_underscored_triple 20:57:12
@emilazy:matrix.orgemily(dashed triple too! but yes)20:57:26
@dramforever:matrix.orgdramforever if it's cross it uses pkg-config for build and PKG_CONFIG_underscored_triple for host? 20:57:31
@dramforever:matrix.orgdramforeverreally?20:57:40
@dramforever:matrix.orgdramforever i thought it replaces '-' with '_' 20:57:48
@dramforever:matrix.orgdramforever otherwise why would they call it target_u 20:57:57
@dramforever:matrix.orgdramforeveroh wait it checks both20:58:23
@dramforever:matrix.orgdramforever ah yes my environment variable called foo-bar 20:58:44
@dramforever:matrix.orgdramforeverthis is definitely not a usability nightmare20:58:53
@dramforever:matrix.orgdramforeveranyway underscored should be fine20:59:11

Show newer messages


Back to Room ListRoom Version: 6