Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build in linux with mingw64 and static #359

Open
cslycord opened this issue Jun 30, 2020 · 1 comment
Open

Fails to build in linux with mingw64 and static #359

cslycord opened this issue Jun 30, 2020 · 1 comment

Comments

@cslycord
Copy link

`$ 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
Copy link
Owner

Remove LDFLAGS=static?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants