WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit d78ce170 authored by John Zhang's avatar John Zhang
Browse files

environment variable refactoring; add -fPIC on to flags

parent ffb49130
......@@ -106,10 +106,8 @@ class RPython(Language):
env = task.env
if lc['backend'] == 'mu':
suplibdir = str(task.output_dir)
if sys.platform == 'darwin':
env['DYLD_LIBRARY_PATH'] = suplibdir
env['LD_LIBRARY_PATH'] = suplibdir
libpath_var = 'DYLD_LIBRARY_PATH' if sys.platform == 'darwin' else 'LD_LIBRARY_PATH'
env[libpath_var] = "%s:%s" % (suplibdir, env[libpath_var])
if lc['impl'] == 'holstein':
mu_holstein_dir = Path(env['MU_HOLSTEIN'])
......@@ -69,11 +69,12 @@ class TaskSet:
# compiled callback shared library
if sys.platform == 'darwin':
self.env['DYLD_LIBRARY_PATH'] = str(self.output_dir)
libpath_var = 'DYLD_LIBRARY_PATH'
libext = '.dylib'
self.env['LD_LIBRARY_PATH'] = str(self.output_dir)
libpath_var = 'LD_LIBRARY_PATH'
libext = '.so'
self.env[libpath_var] = '%s:%s' % (self.output_dir, self.env.get(libpath_var, ""))
self.callback['dylib'] = self.output_dir / ('libcb_%(name)s' % self.callback + libext)
......@@ -212,7 +213,7 @@ class TaskSet:
cc = self.env.get('CC', 'clang')
cmd.extend(['-shared', '-fPIC'])
# include_dirs
for d in self.callback['include_dirs']:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment