Skip to content

Commit

Permalink
[WIP] Set the LD_LIBRARY_PATH only if cross_comp_flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Oct 20, 2023
1 parent 3c05803 commit bf09463
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions kiwixbuild/buildenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,6 @@ def get_env(self, *, cross_comp_flags, cross_compilers, cross_path):

env['PATH'] = ':'.join([pj(self.install_dir, 'bin'), env['PATH']])

env['LD_LIBRARY_PATH'] = ':'.join([env['LD_LIBRARY_PATH'],
pj(self.install_dir, 'lib'),
pj(self.install_dir, self.libprefix)
])

env['QMAKE_CXXFLAGS'] = " ".join(['-I'+pj(self.install_dir, 'include'), env['QMAKE_CXXFLAGS']])
env['CPPFLAGS'] = " ".join(['-I'+pj(self.install_dir, 'include'), env['CPPFLAGS']])
env['QMAKE_LFLAGS'] = " ".join(['-L'+pj(self.install_dir, 'lib'),
Expand All @@ -142,6 +137,10 @@ def get_env(self, *, cross_comp_flags, cross_compilers, cross_path):
env['LDFLAGS']])

if cross_comp_flags:
env['LD_LIBRARY_PATH'] = ':'.join([env['LD_LIBRARY_PATH'],
pj(self.install_dir, 'lib'),
pj(self.install_dir, self.libprefix)
])
self.platformInfo.set_comp_flags(env)
if cross_compilers:
self.platformInfo.set_compiler(env)
Expand Down

0 comments on commit bf09463

Please sign in to comment.