Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291289 - [PATCH] dlopen_lib in portability.eclass broken with -linux-gnueabi
Summary: [PATCH] dlopen_lib in portability.eclass broken with -linux-gnueabi
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-31 13:05 UTC by Markus Meier
Modified: 2009-10-31 15:35 UTC (History)
1 user (show)

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 Markus Meier gentoo-dev 2009-10-31 13:05:59 UTC
dlopen_lib function in portability.eclass is "broken" on my arm-box since the revisions 1.12 and 1.13 (by grobian), as my arm-box has the CHOST="armv5tel-softfloat-linux-gnueabi".

solution:
$ cvs diff portability.eclass 
Index: portability.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v
retrieving revision 1.13
diff -u -B -r1.13 portability.eclass
--- portability.eclass	27 Mar 2009 08:00:56 -0000	1.13
+++ portability.eclass	31 Oct 2009 13:01:59 -0000
@@ -59,7 +59,7 @@
 	# - Darwin needs nothing
 	# - *BSD needs nothing
 	# - Linux needs -ldl (glibc and uclibc)
-	if [[ ${CHOST} == *-linux-gnu || ${CHOST} == *-linux-uclibc ]]; then
+	if [[ ${CHOST} == *-linux-gnu* || ${CHOST} == *-linux-uclibc* ]]; then
 		echo "-ldl"
 	fi
 }
Comment 1 Fabian Groffen gentoo-dev 2009-10-31 15:35:28 UTC
I was unaware of CHOSTs like this, fixed in CVS now, thanks!