Skip to content

Commit ce260df

Browse files
committed
build: Pass NO_LIBELF etc. to ppc64 perf builds on ppc64le
When building ppc64 perf on ppc64le the container image doesn't have many libraries, eg. libelf (because the distro doesn't cross build them for ppc64). So to make the build work pass NO_LIBELF etc.
1 parent 8e30b47 commit ce260df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/scripts/container-build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ elif [[ "$1" == "docs" ]]; then
164164
elif [[ "$1" == "perf" ]]; then
165165
cmd="make $quiet -C tools/perf O=/output"
166166

167-
if [[ $(uname -m) != "ppc64le" ]]; then
167+
if [[ $(uname -m) != "ppc64le" || $CROSS_COMPILE == "powerpc64-linux-gnu-" ]]; then
168168
cmd+=" NO_LIBELF=1 NO_LIBTRACEEVENT=1"
169169
fi
170170

0 commit comments

Comments
 (0)