On 11:26 Sun 22 Mar , Fabian Groffen (grobian) wrote: > grobian 09/03/22 11:26:45 > > Modified: portability.eclass > Log: > make dlopen_lib work in a non-"BSD is the only other thing in the world" > setting
> # Gets the linker flag to link to dlopen() function
> dlopen_lib() {
> - if [[ ${ELIBC} != *BSD ]]; then
> + # this might need a proper case statement, so far this seems to work as
> is
> + # - Solaris needs nothing
> + # - Darwin needs nothing
> + # - *BSD needs nothing
> + # - Linux needs -ldl
> + if [[ ${CHOST} == *-linux-gnu ]]; then
> echo "-ldl"
> fi
> }
How about uclibc?
--
Thanks,
Donnie
Donnie Berkholz
Developer, Gentoo Linux
Blog: http://dberkholz.wordpress.com
pgpk7RrlshtSa.pgp
Description: PGP signature
