dram🎀 on Nostr: PSA: Do not assume that a (cross) compiler is called $arch-linux-gnu-gcc Setting ...
PSA: Do not assume that a (cross) compiler is called $arch-linux-gnu-gcc
Setting aside the question of those using non-GNU or non-Linux, this isn't even right on GNU/Linux across distributions:
- Debian/Ubuntu: $arch-linux-gnu-gcc
- Nixpkgs: $arch-unknown-linux-gnu-gcc
- {Fedora/RHEL,openSUSE,AOSC OS}: $arch-{redhat,suse,aosc}-linux-gnu-gcc
Please make it configurable. Something like a CROSS_COMPILE make variable or something controlling individual tool locations. Thanks.
Published at
2025-07-03 04:50:07 UTCEvent JSON
{
"id": "7667b2c609ce8164920d6834f98f40b350559a556131d6749ee98eee972678f0",
"pubkey": "70715d6b92f48704ac21b8356566ce5976f4089e5a165733d8d7ef6748c02c4d",
"created_at": 1751518207,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/dramforever/statuses/114787497271979789",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "PSA: Do not assume that a (cross) compiler is called $arch-linux-gnu-gcc\n\nSetting aside the question of those using non-GNU or non-Linux, this isn't even right on GNU/Linux across distributions:\n\n- Debian/Ubuntu: $arch-linux-gnu-gcc\n- Nixpkgs: $arch-unknown-linux-gnu-gcc\n- {Fedora/RHEL,openSUSE,AOSC OS}: $arch-{redhat,suse,aosc}-linux-gnu-gcc\n\nPlease make it configurable. Something like a CROSS_COMPILE make variable or something controlling individual tool locations. Thanks.",
"sig": "0fa57ba8358074721346bc4063c1de0dc3dd0d5e8e034b86ef2f18ad46c5dbbffd17055ab8f2d8cca023332a2dd4d70b39e2e4a0a58b80c52fc4f0cfcebd0f1a"
}