Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 477042

Summary: net-misc/openssh-5.9_p1-r4 fails to cross-compile because configure runs pkg-config instead of tc-pkg-config
Product: Gentoo Linux Reporter: Alexander Stein <alexanders83>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: ARM   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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