1 |
On 11:26 Sun 22 Mar , Fabian Groffen (grobian) wrote: |
2 |
> grobian 09/03/22 11:26:45 |
3 |
> |
4 |
> Modified: portability.eclass |
5 |
> Log: |
6 |
> make dlopen_lib work in a non-"BSD is the only other thing in the world" setting |
7 |
|
8 |
> # Gets the linker flag to link to dlopen() function |
9 |
> dlopen_lib() { |
10 |
> - if [[ ${ELIBC} != *BSD ]]; then |
11 |
> + # this might need a proper case statement, so far this seems to work as is |
12 |
> + # - Solaris needs nothing |
13 |
> + # - Darwin needs nothing |
14 |
> + # - *BSD needs nothing |
15 |
> + # - Linux needs -ldl |
16 |
> + if [[ ${CHOST} == *-linux-gnu ]]; then |
17 |
> echo "-ldl" |
18 |
> fi |
19 |
> } |
20 |
|
21 |
How about uclibc? |
22 |
|
23 |
-- |
24 |
Thanks, |
25 |
Donnie |
26 |
|
27 |
Donnie Berkholz |
28 |
Developer, Gentoo Linux |
29 |
Blog: http://dberkholz.wordpress.com |