Open cslycord opened 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
Remove LDFLAGS=static?
LDFLAGS=static
`$ 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