lmbench: fix scripts path for aarch64 (#17456)

This commit is contained in:
darmac 2020-07-12 01:53:53 +08:00 committed by GitHub
parent 9629f571bc
commit 73f02b10de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/scripts/results b/scripts/results
index cd07c15..282ed19 100755
--- a/scripts/results
+++ b/scripts/results
@@ -27,7 +27,7 @@ cd ../bin/$OS
PATH=.:${PATH}; export PATH
export SYNC_MAX
export OUTPUT
-lmbench $CONFIG 2>../${RESULTS}
+lmbench $CONFIG 2>${RESULTS}
if [ X$MAIL = Xyes ]
then echo Mailing results

View File

@ -19,6 +19,8 @@ class Lmbench(MakefilePackage):
depends_on('libtirpc') depends_on('libtirpc')
patch('fix_results_path_for_aarch64.patch', sha256='2af57abc9058c56b6dd0697bb01a98902230bef92b117017e318faba148eef60', when='target=aarch64:')
def setup_build_environment(self, env): def setup_build_environment(self, env):
env.prepend_path('CPATH', self.spec['libtirpc'].prefix.include.tirpc) env.prepend_path('CPATH', self.spec['libtirpc'].prefix.include.tirpc)
env.append_flags('LDFLAGS', '-ltirpc') env.append_flags('LDFLAGS', '-ltirpc')