Skip to content

minor makefile fix for building with gcc6 (but debian default linker) #242

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

Closed
florianschanda opened this issue Sep 28, 2016 · 2 comments
Closed

Comments

@florianschanda
Copy link

Yes, our setup here is a bit odd maybe. But this tiny fix allows us to build.

diff --git a/src/util/Makefile b/src/util/Makefile
index 5152955..b27e22c 100644
--- a/src/util/Makefile
+++ b/src/util/Makefile
@@ -45,7 +45,7 @@ irep_ids.inc: irep_ids_convert$(EXEEXT) irep_ids.txt
 irep_ids.cpp: irep_ids.inc irep_ids.h

 irep_ids_convert$(EXEEXT): irep_ids_convert.cpp
-       $(LINKNATIVE)
+       $(LINKNATIVE) -static

 generated_files: irep_ids.h irep_ids.inc
@florianschanda
Copy link
Author

Actually, we need a few more changes like this:

diff --git a/src/ansi-c/Makefile b/src/ansi-c/Makefile
index 0764c13..d07a0d4 100644
--- a/src/ansi-c/Makefile
+++ b/src/ansi-c/Makefile
@@ -54,10 +54,10 @@ cprover_library$(OBJEXT): cprover_library.inc
 ###############################################################################

 library/converter$(EXEEXT): library/converter.cpp
-       $(LINKNATIVE)
+       $(LINKNATIVE) -static

 file_converter$(EXEEXT): file_converter.cpp
-       $(LINKNATIVE)
+       $(LINKNATIVE) -static

 ifeq ($(BUILD_ENV),MinGW)
   platform_unavail = library/java.io.c library/err.c library/threads.c

smowton pushed a commit to smowton/cbmc that referenced this issue May 9, 2018
chrisr-diffblue added a commit to chrisr-diffblue/cbmc that referenced this issue Aug 24, 2018
Make exprt::is_zero() support bitfields
@peterschrammel
Copy link
Member

obsolete

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