Commit Graph

7 Commits

Author SHA1 Message Date
Sergei Trofimovich
e2e400e267 dmd: revert "set --sysroot=/ to avoid cc-wrapper value"
This reverts commit 7c73d1e025.

commit 8c80bd08b7
("build-support/cc-wrapper: pass in non-existent --sysroot= to untangle
from libc") was reverted. We can drop the workaround.
2023-01-29 07:49:37 +00:00
Sergei Trofimovich
f53b71ae34
Merge pull request #213141 from trofi/dmd-sysroot-workaround
dmd: set --sysroot=/ to avoid cc-wrapper value
2023-01-28 21:40:32 +00:00
Sergei Trofimovich
7c73d1e025 dmd: set --sysroot=/ to avoid cc-wrapper value
After https://github.com/NixOS/nixpkgs/pull/210004 `dmd` started failing
build as:

    ld: warning: libm.so.6, needed by ./generated/linux/release/64/lib.so, not found (try using -rpath or -rpath-link)
    ld: /build/druntime/generated/linux/release/64/libdruntime.so: undefined reference to `log10@GLIBC_2.2.5'

This happens because --sysroot=/nix/store/does/not/exist removes not
just include headers by prefixing wrong path, but also removes RUNPATH
dependencies of linked libraries. It's an unintended effect.

Restore the build by reversing the effect with --sysroot=/.
2023-01-28 11:34:39 +00:00
Sergei Trofimovich
a4b7bafc65 dmd: fix Check post-hook to be postCheck, not postBuild 2023-01-28 09:39:29 +00:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
OPNA2608
89caeb83f6 dmd: Address PR feedback 2022-10-26 18:49:13 +02:00
OPNA2608
9695c4ee8d dmd: 2.097.2 -> 2.100.2, refactor, fix on Darwin 2022-10-23 16:12:45 +02:00