diff options
| author | James Le Cuirot <chewi@gentoo.org> | 2024-08-14 23:57:42 +0100 |
|---|---|---|
| committer | James Le Cuirot <chewi@gentoo.org> | 2024-08-14 23:57:42 +0100 |
| commit | d4e05894e6e82d12f039b10c0fb2c6d9c2b210cb (patch) | |
| tree | 8e773004b5a4a2f835fc146190f610a942358058 /dev-lang/perl/perl-5.40.0.ebuild | |
| parent | d64d7b6380f3ba0139a3294ca0c09b3a02beca14 (diff) | |
| download | gentoo-d4e05894e6e82d12f039b10c0fb2c6d9c2b210cb.tar.gz gentoo-d4e05894e6e82d12f039b10c0fb2c6d9c2b210cb.tar.bz2 gentoo-d4e05894e6e82d12f039b10c0fb2c6d9c2b210cb.zip | |
dev-lang/perl: Respect build host CC and flags when cross-compiling
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'dev-lang/perl/perl-5.40.0.ebuild')
| -rw-r--r-- | dev-lang/perl/perl-5.40.0.ebuild | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dev-lang/perl/perl-5.40.0.ebuild b/dev-lang/perl/perl-5.40.0.ebuild index 51c69a3aec67..462941f8d822 100644 --- a/dev-lang/perl/perl-5.40.0.ebuild +++ b/dev-lang/perl/perl-5.40.0.ebuild @@ -622,12 +622,16 @@ src_configure() { # modifying 'optimize' prevents cross configure script from appending required flags if tc-is-cross-compiler; then append-cflags "-fwrapv" + tc-export_build_env # Needed for the CHOST build too (bug #932385) export CFLAGS="${CFLAGS} -D_GNU_SOURCE" # bug #913171 - export HOSTCFLAGS="${CFLAGS_FOR_BUILD} -D_GNU_SOURCE" + export \ + HOSTCC=$(tc-getBUILD_CC) \ + HOSTCFLAGS="${CFLAGS_FOR_BUILD} -D_GNU_SOURCE" \ + HOSTLDFLAGS="${LDFLAGS_FOR_BUILD}" fi # bug #877659, bug #821577 |
