1 |
>> |
2 |
>> No, but zlib is really very custom made build stuff, so I'm not |
3 |
>> surprised if it need some help from the ebuild to actually do something |
4 |
>> useful. |
5 |
> |
6 |
> OK, then I switch to linux, to find out how it should behave. |
7 |
|
8 |
Seems like a bug in configure and/or Makefile.in in combination with a |
9 |
misscofiguration of mine: |
10 |
|
11 |
initially $shared is set to 1. (line 56: shared=1). Also the |
12 |
libraries are set. As long as $shared this is not ZERO, the copy line |
13 |
works. |
14 |
|
15 |
The copy line is set in Makefile.in UNCONDITIONALLY. That is the bug I suspect. |
16 |
|
17 |
If $shared is set to 1 the libraries are emptied and the copy line |
18 |
breaks. This happens by this condition near line 240: |
19 |
|
20 |
<snip> |
21 |
elif test -z "$old_cc" -a -z "$old_cflags"; then |
22 |
echo No shared library support. |
23 |
shared=0; |
24 |
</snip> |
25 |
|
26 |
The origin of this variables is line 60 at the top: |
27 |
|
28 |
old_cc="$CC" |
29 |
old_cflags="$CFLAGS" |
30 |
|
31 |
Bottomline: configure only works with shared libraries. |
32 |
|
33 |
What do you suggest? |
34 |
|
35 |
Fixing Makefile.in? |
36 |
|
37 |
Setting CC or CFLAGS? Which value? Which location? |
38 |
|
39 |
Al |