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

MinGW makefile tweaks #2

Open
buybackoff opened this issue Mar 17, 2016 · 1 comment
Open

MinGW makefile tweaks #2

buybackoff opened this issue Mar 17, 2016 · 1 comment

Comments

@buybackoff
Copy link

I needed to remove -ldl option and add linking flags: -pthread -static -static-libgcc, so that the line looks like:

TOOLCMD = gcc -pthread -static -static-libgcc c_src/tool.c c_src/mdb.c c_src/midl.c c_src/lz4.c  -D_TESTAPP_=1 -DMDB_MAXKEYSIZE=0 -DSQLITE_DEFAULT_PAGE_SIZE=4096 -DSQLITE_DEFAULT_WAL_AUTOCHECKPOINT=0 -lpthread  -o adbtool

I do not have a lot of knowledge about makefiles. Is it possible to add an elif statement to check for MinGW like you check for Darwin: ifeq ($(uname_S),Darwin)?

@SergejJurecko
Copy link
Contributor

My makefile skills are pretty poor as well. I can't really help much.

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