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

Bug 167851

Summary: dev-libs/icu - static linking fails
Product: Gentoo Linux Reporter: Olivier DOLE <odole>
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Olivier DOLE 2007-02-21 09:36:03 UTC
When statically linking an executable with icu, it fails because it cannot find icu static libraries.
Note: This bug is not a duplicate of bug #167481 as I have icu static libraries compiled.
This bug is due to that icu called its shared libraries libsicu"something".a instead of libicu"something".a and when using icu-config for retrieving ldflags we get something like that:
-lpthread -lm -L/usr/lib -licui18n -licuuc -licudata -lpthread -lm

Reproducible: Always




A workaround for me was to add the following line in icu ebuild before the econf step:
sed -i -e \
        's/STATIC_PREFIX\ =\ s/STATIC_PREFIX\ =/g' \
        icudefs.mk.in config/Makefile.inc.in
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-02-21 09:39:28 UTC
Please note that on the pending bug; it's really pointless to have a separate bug for a feature that's not in the ebuild yet anyway.

Thanks.

*** This bug has been marked as a duplicate of bug 167481 ***