From 6e80adefb1605f3ca76d5a2f77a4ea65bf5acaee Mon Sep 17 00:00:00 2001 From: Jay Phelps Date: Thu, 30 Aug 2018 10:07:56 -0400 Subject: use comma for -rpath instead of equals sign to fix MacOS (#1651) on MacOS with gcc-8 the equals sign -rpath= is invalid. Best I can tell a comma can be used instead -rpath, more cross-platform, but only Travis will tell us +1 I think this fixes #1185 provided you install real GCC (Mac has clang pretend to be gcc) and provide it CC=gcc-8 CXX=g++-8 ./check.py. --- auto_update_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auto_update_tests.py') diff --git a/auto_update_tests.py b/auto_update_tests.py index 181eb5696..a291421d5 100755 --- a/auto_update_tests.py +++ b/auto_update_tests.py @@ -225,7 +225,7 @@ def update_example_tests(): print os.getcwd() subprocess.check_call(extra) # Link against the binaryen C library DSO, using rpath - cmd = ['example.o', '-L' + libdir, '-lbinaryen', '-Wl,-rpath=' + os.path.abspath(libdir)] + cmd + cmd = ['example.o', '-L' + libdir, '-lbinaryen', '-Wl,-rpath,' + os.path.abspath(libdir)] + cmd print ' ', t, src, expected if os.environ.get('COMPILER_FLAGS'): for f in os.environ.get('COMPILER_FLAGS').split(' '): -- cgit v1.2.3