X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=devtools%2Ftest-meson-builds.sh;h=9fe0a04c9e7b5fb1824f9fb5f0650b90bea30205;hb=3f72f6071484979506ec9c6bf3086a0ff4b55f08;hp=57d1af47ef0cf2ef942362087a37f1d13a0916eb;hpb=7f80a2102bbb842a528ac17bcfc52e46865602df;p=dpdk.git diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index 57d1af47ef..9fe0a04c9e 100755 --- a/devtools/test-meson-builds.sh +++ b/devtools/test-meson-builds.sh @@ -76,12 +76,14 @@ for c in gcc clang ; do done # test compilation with minimal x86 instruction set +# Set the install path for libraries to "lib" explicitly to prevent problems +# with pkg-config prefixes if installed in "lib/x86_64-linux-gnu" later. default_machine='nehalem' ok=$(cc -march=$default_machine -E - < /dev/null > /dev/null 2>&1 || echo false) if [ "$ok" = "false" ] ; then default_machine='corei7' fi -build build-x86-default -Dmachine=$default_machine $use_shared +build build-x86-default -Dlibdir=lib -Dmachine=$default_machine $use_shared # enable cross compilation if gcc cross-compiler is found c=aarch64-linux-gnu-gcc