google / zopfli

Zopfli Compression Algorithm is a compression library programmed in C to perform very good, but slow, deflate or zlib compression.
Apache License 2.0
3.43k stars 329 forks source link

Don't assume -lm is required #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. The current makefile has -lm hardcoded in, this should be added optionally

What is the expected output? What do you see instead?
Haiku and perhaps other Operating Systems, have their math library built in and 
thus don't require the use of -lm when building.

What version of the product are you using? On what operating system?
git master on Haiku.

Please provide any additional information below.
For now to build on Haiku I just use "sed -i 's/\-lm//' makefile"

Original issue reported on code.google.com by scott...@gmail.com on 16 Mar 2013 at 5:53

GoogleCodeExporter commented 9 years ago
I used Fedora 18 to make Zopfli from source without problem. But I encountered 
problem about log() function was not found when made Pigz 2.3 (Zopfli 
included). I fixed by add -lm in Makefile.

Original comment by ultimate...@gmail.com on 18 Mar 2013 at 4:43

GoogleCodeExporter commented 9 years ago
This is why they invented autoconf.  Yes, it's terrible, but everything else 
seems to be even worse, so ...

Original comment by naesten on 4 Dec 2014 at 8:12