kornelski / pngquant

Lossy PNG compressor — pngquant command based on libimagequant library
https://pngquant.org
Other
5.16k stars 480 forks source link

Fails to build in linux with mingw64 and static #359

Open cslycord opened 4 years ago

cslycord commented 4 years ago

`$ CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ LDLIBS=-lmingw32 LDFLAGS=static ./configure

Compiler: x86_64-w64-mingw32-gcc Debug: no SSE: yes OpenMP: no imagequant: build static libpng: shared (1.6.37) zlib: shared (1.2.11) lcms2: no`

$ make x86_64-w64-mingw32-gcc pngquant.o pngquant_opts.o rwpng.o -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -Wno-unknown-pragmas -I./lib -I/usr/include/libpng16 -fexcess-precision=fast static ./lib/libimagequant.a -lpng16 -lz -lz -lm -o pngquant x86_64-w64-mingw32-gcc: error: static: No such file or directory make: *** [Makefile:30: pngquant] Error 1

kornelski commented 4 years ago

Remove LDFLAGS=static?