aboutsummaryrefslogtreecommitdiff
path: root/tools/test.sh
diff options
context:
space:
mode:
authorQuentin Carbonneaux <[email protected]>2017-04-07 19:42:47 -0400
committerQuentin Carbonneaux <[email protected]>2017-04-08 22:23:40 -0400
commitc52f9162c4d35f3b55001d7337d618184961966f (patch)
tree1e8821420c11d79cdb9d40c440984c78a2ea1a1f /tools/test.sh
parent5fde07c211848adc5b220500b257a6a9b8ef50f8 (diff)
misc fixes for osx
With the default toolchain, it looks like we have to make sure all symbols are loaded using rip-relative addressing.
Diffstat (limited to 'tools/test.sh')
-rwxr-xr-xtools/test.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/test.sh b/tools/test.sh
index 5430ccd..5c3f205 100755
--- a/tools/test.sh
+++ b/tools/test.sh
@@ -35,6 +35,9 @@ init() {
;;
"")
case `uname` in
+ *Darwin*)
+ cc="cc -Wl,-no_pie"
+ ;;
*OpenBSD*)
cc="cc -nopie"
;;