| 18 Jul 2025 |
dramforever | okay so HOST_PKG_CONFIG is just doing nothing...? | 20:52:49 |
emily | well it's doing the same thing as PKG_CONFIG in non-cross builds | 20:53:03 |
emily | for cross builds it's never used, I guess. | 20:53:11 |
emily | or well | 20:53:21 |
dramforever | ah | 20:53:22 |
emily | it's used in the build scripts | 20:53:23 |
emily | or, uh | 20:53:27 |
emily | I mean, it's used when targeting … augh | 20:53:35 |
emily | you know what I mean. hopefully | 20:53:41 |
dramforever | wanna get angry? linux makefiles take HOSTPKG_CONFIG | 20:53:56 |
emily | it seems like the library will fundamentally only think about the host ("target") platform | 20:54:22 |
emily | when run in a build script for a package targeting that host platform | 20:54:30 |
emily | even though there seems like reason you might want to care about build platform deps in such a build script too | 20:54:42 |
dramforever | wait so if i'm building a build script dep | 20:55:04 |
dramforever | what do i get for "HOST" and "TARGET" | 20:55:16 |
emily | the same thing | 20:55:20 |
emily | the build platform | 20:55:25 |
emily | so it will notice they're the same and look at HOST_PKG_CONFIG and PKG_CONFIG_[buildPlatform] | 20:55:38 |
emily | I really need to find the person who came up with build/host/target and take them to the Hague or something | 20:56:03 |
emily | I 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-mistake | 20:56:37 |
dramforever | so if non-cross, it looks at HOST_PKG_CONFIG and PKG_CONFIG_underscored_triple | 20:57:12 |
emily | (dashed triple too! but yes) | 20:57:26 |
dramforever | if it's cross it uses pkg-config for build and PKG_CONFIG_underscored_triple for host? | 20:57:31 |
dramforever | really? | 20:57:40 |
dramforever | i thought it replaces '-' with '_' | 20:57:48 |
dramforever | otherwise why would they call it target_u | 20:57:57 |
dramforever | oh wait it checks both | 20:58:23 |
dramforever | ah yes my environment variable called foo-bar | 20:58:44 |
dramforever | this is definitely not a usability nightmare | 20:58:53 |
dramforever | anyway underscored should be fine | 20:59:11 |