Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 477042 - net-misc/openssh-5.9_p1-r4 fails to cross-compile because configure runs pkg-config instead of tc-pkg-config
Summary: net-misc/openssh-5.9_p1-r4 fails to cross-compile because configure runs pkg-...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-16 10:44 UTC by Alexander Stein
Modified: 2013-11-07 20:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Stein 2013-07-16 10:44:35 UTC
The openssl check in openssh explicitly passes "-lcrypto" to the linker. The ebuild currently patches the configure script with this line:
> sed -i "s:-lcrypto:$(pkg-config --libs openssl):" configure{,.ac} || die
Problem here, is that the host pkg-config is called thus adding flags for host openssl.
For cross-compilation e.g.
> sed -i "s:-lcrypto:$(cross-pkg-config --libs openssl):" configure{,.ac} || die
can actually be used for a successful build.
Problem: this is only installed by crossdev.
I don't know if there is a way to detect and call the correct pkg-config. Ideas?

Reproducible: Always
Comment 1 SpanKY gentoo-dev 2013-11-07 20:33:21 UTC
this is already fixed in newer openssh