Skip to content

Conversation

@bkuhls
Copy link
Contributor

@bkuhls bkuhls commented Nov 1, 2025

Partly reverts commit a449ff8.

Hard-coding "ld" when cross-compiling is a bad idea.

@bkuhls
Copy link
Contributor Author

bkuhls commented Nov 1, 2025

Issue was found by buildroot checks, all target archs fails except host arch x86_64:
https://gitlab.com/jolivain/buildroot/-/pipelines/2134120759
For example aarch64:
https://gitlab.com/jolivain/buildroot/-/jobs/11936875772

/builds/jolivain/buildroot/br-test-pkg/arm-aarch64/host/bin/aarch64-none-linux-gnu-gcc dkim.c dkim_transport.c pdkim.c signing.c
[...]
ld: unknown architecture of input file `dkim_tmp.o' is incompatible with i386:x86-64 output
ld: unknown architecture of input file `dkim_transport.o' is incompatible with i386:x86-64 output
ld: unknown architecture of input file `pdkim.o' is incompatible with i386:x86-64 output
ld: unknown architecture of input file `signing.o' is incompatible with i386:x86-64 output

@bkuhls
Copy link
Contributor Author

bkuhls commented Nov 1, 2025

Fixes cross-build error due to commit
a449ff8.

Hard-coding "ld" when cross-compiling is a bad idea.
@bkuhls bkuhls changed the title Partly revert "Build: more Solaris cc/ld workaround attempts" Fix cross-compile by adding LD variable Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant