Gentoo Archives: gentoo-alt

From: Al <oss.elmar@××××××××××.com>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] zlib: empty SHAREDLIBV
Date: Tue, 31 Aug 2010 23:12:20
Message-Id: AANLkTi=9RXDuDh5V3uEF-UWe3uzRYbsY-K3CaUBO-Aw=@mail.gmail.com
In Reply to: Re: [gentoo-alt] zlib: empty SHAREDLIBV by Al
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

Replies

Subject Author
Re: [gentoo-alt] zlib: empty SHAREDLIBV Al <oss.elmar@××××××××××.com>