We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fda229 commit 32d44b9Copy full SHA for 32d44b9
src/util/Makefile
@@ -119,6 +119,17 @@ INCLUDES= -I ..
119
include ../config.inc
120
include ../common
121
122
+ifeq ($(OS),Windows_NT)
123
+ detected_OS := Windows
124
+else
125
+ detected_OS := $(shell sh -c 'uname 2>/dev/null || echo Unknown')
126
+endif
127
+
128
+ifeq ($(detected_OS),Linux)
129
+ CFLAGS += -fPIE
130
+ CXXFLAGS += -fPIE
131
132
133
# get version from git
134
GIT_INFO = $(shell git describe --tags --always --dirty || echo "n/a")
135
RELEASE_INFO = const char *CBMC_VERSION="$(CBMC_VERSION) ($(GIT_INFO))";
0 commit comments