-
Notifications
You must be signed in to change notification settings - Fork 284
Update documentation for building cbmc on windows. #1504
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,17 +101,19 @@ else ifeq ($(BUILD_ENV_),Cygwin) | |
CXXFLAGS ?= -Wall -O2 | ||
CP_CFLAGS = -MMD -MP | ||
CP_CXXFLAGS += -MMD -MP -std=c++11 -U__STRICT_ANSI__ | ||
# Cygwin-g++ has problems with statically linking exception code. | ||
# If linking fails, remove -static. | ||
LINKFLAGS = -static -std=c++11 | ||
|
||
LINKLIB = ar rcT $@ $^ | ||
LINKBIN = $(CXX) $(LINKFLAGS) -o $@ -Wl,--start-group $^ -Wl,--end-group $(LIBS) -static | ||
LINKBIN = $(CXX) $(LINKFLAGS) -o $@ -Wl,--start-group $^ -Wl,--end-group $(LIBS) | ||
LINKNATIVE = $(HOSTCXX) -std=c++11 -o $@ $^ -static | ||
ifeq ($(origin CC),default) | ||
#CC = gcc | ||
CC = i686-w64-mingw32-gcc | ||
CC = x86_64-w64-mingw32-gcc | ||
endif | ||
ifeq ($(origin CXX),default) | ||
#CXX = g++ | ||
CXX = i686-w64-mingw32-g++ | ||
CXX = x86_64-w64-mingw32-g++ | ||
endif | ||
|
||
ifeq ($(origin YACC),default) | ||
YACC = bison -y | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This enables the user to set an alternative download program without editing the Makefile.
E.g. to use wget on Windows under Cygwin, do
make DOWNLOADER=wget minisat2-download