Added setting of -rpath for linker options on macOS.

这个提交包含在:
Craig Warren
2017-10-30 14:51:42 +00:00
父节点 38910a65ce
当前提交 8bb0dd6c61

查看文件

@@ -114,10 +114,11 @@ elif sys.platform == 'darwin':
if gccpath:
# Use newest gcc found
os.environ['CC'] = gccpath[-1].split(os.sep)[-1]
rpath = '/usr/local/opt/gcc/lib/gcc/' + gccpath[-1].split(os.sep)[-1][-1] + '/'
else:
raise('Cannot find gcc 4.x, 5.x, 6.x, or 7.x in /usr/local/bin. gprMax requires gcc to be installed - easily done through the Homebrew package manager (http://brew.sh). Note: gcc with OpenMP support, i.e. --without-multilib, must be installed')
compile_args = ['-O3', '-w', '-fopenmp', '-march=native'] # Sometimes worth testing with '-fstrict-aliasing', '-fno-common'
linker_args = ['-fopenmp']
linker_args = ['-fopenmp', '-Wl,-rpath,' + rpath]
extra_objects = []
# Linux
elif sys.platform == 'linux':