2020-02-07 13:50:29 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2021-07-08 04:46:47 +08:00
|
|
|
if [ $# -ne 1 ]; then
|
|
|
|
echo "$0 expects one argument, the installation prefix."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
prefix=$1
|
|
|
|
|
2020-02-07 13:50:29 +08:00
|
|
|
cd sim/firesim-lib/src/main/cc/lib/libdwarf
|
|
|
|
sh scripts/FIX-CONFIGURE-TIMES
|
2021-07-15 04:27:56 +08:00
|
|
|
mkdir -p build
|
2021-07-08 04:46:47 +08:00
|
|
|
cd build
|
2021-07-15 04:27:56 +08:00
|
|
|
# Get libelf from our local sysroot ($prefix)
|
|
|
|
../configure --prefix="${prefix}" --enable-shared --disable-static CFLAGS="-g -I${prefix}/include" LDFLAGS="-L${prefix}/lib"
|
2020-02-07 13:50:29 +08:00
|
|
|
make
|
|
|
|
make install
|