aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser
diff options
context:
space:
mode:
Diffstat (limited to 'bruiser')
-rw-r--r--bruiser/autogen/wasm/ft/makefile4
-rw-r--r--bruiser/autogen/wasm/ltg/makefile4
-rw-r--r--bruiser/makefile8
3 files changed, 16 insertions, 0 deletions
diff --git a/bruiser/autogen/wasm/ft/makefile b/bruiser/autogen/wasm/ft/makefile
index 08e0ffe..1ee85d2 100644
--- a/bruiser/autogen/wasm/ft/makefile
+++ b/bruiser/autogen/wasm/ft/makefile
@@ -3,7 +3,11 @@ SHELL=bash
SHELL?=bash
CC=clang
CC?=clang
+ifdef OS
+CC_FLAGS=
+else
CC_FLAGS= -fPIC
+endif
CC_EXTRA?=
CTAGS_I_PATH?=./
LD_FLAGS=
diff --git a/bruiser/autogen/wasm/ltg/makefile b/bruiser/autogen/wasm/ltg/makefile
index 41d6c5a..7f06195 100644
--- a/bruiser/autogen/wasm/ltg/makefile
+++ b/bruiser/autogen/wasm/ltg/makefile
@@ -3,7 +3,11 @@ SHELL=bash
SHELL?=bash
CC=clang
CC?=clang
+ifdef OS
+CC_FLAGS=
+else
CC_FLAGS= -fPIC
+endif
CC_EXTRA?=
CTAGS_I_PATH?=./
LD_FLAGS=
diff --git a/bruiser/makefile b/bruiser/makefile
index 2e29fd1..48f54cb 100644
--- a/bruiser/makefile
+++ b/bruiser/makefile
@@ -14,10 +14,18 @@ SHELL=bash
SHELL?=bash
CC=clang
CC?=clang
+ifdef OS
+CC_FLAGS= $(shell $(PY_CONF) --includes)
+else
CC_FLAGS=-fpic $(shell $(PY_CONF) --includes)
+endif
CXX=clang++
CXX?=clang++
+ifdef OS
+CXX_FLAGS= -I/usr/include $(shell $(PY_CONF) --includes)
+else
CXX_FLAGS=-fpic -I/usr/include $(shell $(PY_CONF) --includes)
+endif
CXX_EXTRA?=
CTAGS_I_PATH?=./
LD_FLAGS=-v