Skip to content

Commit

Permalink
[Bug] [linux] [opengl] Use RTLD_LOCAL to prevent LLVM symbol conflict…
Browse files Browse the repository at this point in the history
… with GLX (#1326)
  • Loading branch information
archibate authored Jun 25, 2020
1 parent 9041851 commit 0a434d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/taichi/core/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def import_ti_core(tmp_dir=None):
global ti_core
if get_os_name() != 'win':
old_flags = sys.getdlopenflags()
sys.setdlopenflags(258) # 258 = RTLD_NOW | RTLD_GLOBAL
sys.setdlopenflags(2) # 2 = RTLD_NOW
else:
pyddir = os.path.join(package_root(), 'lib')
os.environ['PATH'] += ';' + pyddir
Expand Down

0 comments on commit 0a434d3

Please sign in to comment.