Use libelf installed at local sysroot when building libdwarf
This commit is contained in:
parent
e7c71f0d70
commit
b188faa0b8
|
@ -209,8 +209,8 @@ fi
|
|||
firesim_local_sysroot=$RDIR/sim/lib-install
|
||||
cd $RDIR
|
||||
mkdir -p $firesim_local_sysroot
|
||||
./scripts/build-libdwarf.sh $firesim_local_sysroot
|
||||
./scripts/build-libelf.sh $firesim_local_sysroot
|
||||
./scripts/build-libdwarf.sh $firesim_local_sysroot
|
||||
env_append "export LD_LIBRARY_PATH=$firesim_local_sysroot/lib\${LD_LIBRARY_PATH:+\":\${LD_LIBRARY_PATH}\"}"
|
||||
|
||||
cd $RDIR
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
if [ -z "$RISCV" ]; then
|
||||
echo "You must set \$RISCV to run this script."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "$0 expects one argument, the installation prefix."
|
||||
|
@ -15,8 +11,9 @@ prefix=$1
|
|||
|
||||
cd sim/firesim-lib/src/main/cc/lib/libdwarf
|
||||
sh scripts/FIX-CONFIGURE-TIMES
|
||||
mkdir build
|
||||
mkdir -p build
|
||||
cd build
|
||||
../configure --prefix="${prefix}" --enable-shared --disable-static CFLAGS="-g -I${RISCV}/include" LDFLAGS="-L${RISCV}/lib"
|
||||
# Get libelf from our local sysroot ($prefix)
|
||||
../configure --prefix="${prefix}" --enable-shared --disable-static CFLAGS="-g -I${prefix}/include" LDFLAGS="-L${prefix}/lib"
|
||||
make
|
||||
make install
|
||||
|
|
Loading…
Reference in New Issue