Skip to content

binutils: do not build with -static-libgcc on FreeBSD#313892

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
rhelmot:freebsd-minimal3/binutils
May 27, 2024
Merged

binutils: do not build with -static-libgcc on FreeBSD#313892
Ericson2314 merged 1 commit intoNixOS:masterfrom
rhelmot:freebsd-minimal3/binutils

Conversation

@rhelmot
Copy link
Contributor

@rhelmot rhelmot commented May 23, 2024

Description of changes

part of #296581

Add FreeBSD to the list of platforms which should not add -static-libgcc to CFLAGS.

The need for this is odd. The symptom without it is that the build fails because of missing LONG_MIN, which is because configure detected that limits.h does not exist, which is a falsehood. I don't know what criteria it's using to claim this, because config.log claims the requisite check exits with status 0 after outputting a warning about unused flag -static-libgcc. Removing that flag makes it work. Why? Must be the flag, but I've never seen configure do that.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
    • x86_64-freebsd
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels May 23, 2024
Copy link
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description should not just be part of the PR. In this case, it can be in a code comment because it describes the current state of the code (as opposed to the change from the previous state of the code to the new state of the code).

@rhelmot rhelmot force-pushed the freebsd-minimal3/binutils branch from 9b2acc6 to 14de038 Compare May 26, 2024 21:48
@rhelmot
Copy link
Contributor Author

rhelmot commented May 26, 2024

Done.

@Ericson2314 Ericson2314 merged commit 7024402 into NixOS:master May 27, 2024
@Ericson2314 Ericson2314 deleted the freebsd-minimal3/binutils branch May 27, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants