[Zlib-devel] [RFC][PATCH] fix parallel make issue
Daniel Mierswa
impulze at impulze.org
Fri Feb 4 07:32:09 EST 2011
On 04.02.2011 12:38, Enrico Weighty wrote:
> * Daniel Mierswa <impulze at impulze.org> schrieb:
>> Hi list,
>> because configure sets LDFLAGS=libz.a it could happen that the shared
> ^^^^^^^^^^^^^^
> Of course, that is crap ;-p
>
> The bug is in configure:21 (in v1.2.5H) - simply remove that line (LDFLAGS=...)
>
> If the test programs (eg. example, minigzip, ...) should be linked
> statically, their appropriate make targets have to be fixed to use
> the static library instead the shared one.
>
>> --- ./Makefile.in.orig 2011-02-01 16:52:28.000000000 +0100
>> +++ ./Makefile.in 2011-02-01 16:52:43.000000000 +0100
>> @@ -136,7 +136,7 @@
>> $(CC) $(SFLAGS) -DPIC -c -o objs/$*.o $<
>> - at mv objs/$*.o $@
>> 0
>> -$(SHAREDLIBV): $(PIC_OBJS)
>> +$(SHAREDLIBV): $(PIC_OBJS) $(STATICLIB)
>> $(LDSHARED) $(SFLAGS) -o $@ $(PIC_OBJS) $(LDSHAREDLIBC) $(LDFLAGS)
>> rm -f $(SHAREDLIB) $(SHAREDLIBM)
>> ln -s $@ $(SHAREDLIB)
>
> NAK. This only causes libz.a be built before the .so one, but
> they're completely orthogonal (dont need each other whatsoever)
> and might give funny results when building w/o the static one.
>
>
> cu
Will you take care of it, or shall I create a new patch? Not sure if
I'll get everything right though. :)
--
Mierswa, Daniel
If you still don't like it, that's ok: that's why I'm boss. I simply
know better than you do.
--- Linus Torvalds, comp.os.linux.advocacy, 1996/07/22
More information about the Zlib-devel
mailing list