Skip to content

Instantly share code, notes, and snippets.

@ben-albrecht
Created August 7, 2017 16:14
Show Gist options
  • Save ben-albrecht/f02b33dbefad74a8629de49cab795628 to your computer and use it in GitHub Desktop.
Save ben-albrecht/f02b33dbefad74a8629de49cab795628 to your computer and use it in GitHub Desktop.
Patch to PyChapel to make OSX work
diff --git a/module/configs/pych.json b/module/configs/pych.json
index 82f3b00..2d1019d 100644
--- a/module/configs/pych.json
+++ b/module/configs/pych.json
@@ -81,7 +81,6 @@
"cflags": [
"--fast",
"--library",
- "--static",
"-searlyShiftData=false"
],
"lflags": [
@@ -102,7 +101,7 @@
"commands": [
"chpl %(cflags)s __CHPL_FLAGS__ %(ctargets)s -o __TMP_PATH__",
- "g++ %(lflags)s -Wl,--whole-archive %(ltargets)s -Wl,--no-whole-archive -o __OBJECT_ABSPATH__"
+ "g++ %(lflags)s -Wl, -all_load %(ltargets)s -Wl, -o __OBJECT_ABSPATH__"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment