open-iscsi: refine runtime environment (#17789)

This commit is contained in:
darmac 2020-08-01 03:43:40 +08:00 committed by GitHub
parent c7e83a8375
commit 8df17d3830
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,5 +28,9 @@ class OpenIscsi(MakefilePackage):
def setup_build_environment(self, env): def setup_build_environment(self, env):
env.set('CFLAGS', '-DNO_SYSTEMD') env.set('CFLAGS', '-DNO_SYSTEMD')
def setup_run_environment(self, env):
env.prepend_path('PATH', self.prefix.sbin)
env.prepend_path('LD_LIBRARY_PATH', self.prefix.usr.lib64)
def install(self, spec, prefix): def install(self, spec, prefix):
make('install', 'DESTDIR={0}'.format(prefix)) make('install', 'DESTDIR={0}'.format(prefix))