Skip to content
This repository was archived by the owner on Nov 4, 2021. It is now read-only.

Commit c4c992b

Browse files
committed
ghdl: use prefix '/opt/fpga-toolchain'
1 parent 2cb0215 commit c4c992b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

scripts/compile_ghdl.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,17 @@ if [ $ARCH == "darwin" ]; then
1818
OLD_PATH=$PATH
1919
export PATH="$GNAT_ROOT/bin:$PATH"
2020

21-
./configure --prefix=$PACKAGE_DIR/$NAME
22-
21+
./configure --prefix=/opt/fpga-toolchain
2322
$MAKE -j$J GNAT_LARGS="-static-libgcc $ZLIB_ROOT/lib/libz.a"
24-
$MAKE install
23+
$MAKE DESTDIR=$PACKAGE_DIR/$NAME-prefix install
24+
cp -r $PACKAGE_DIR/$NAME-prefix/opt/fpga-toolchain/* $PACKAGE_DIR/$NAME
2525

2626
export PATH="$OLD_PATH"
2727
else
28-
./configure --prefix=$PACKAGE_DIR/$NAME
28+
./configure --prefix=/opt/fpga-toolchain
2929
$MAKE -j$J GNAT_BARGS="-bargs -E -static" GNAT_LARGS="-static -lz"
30-
$MAKE install
30+
$MAKE DESTDIR=$PACKAGE_DIR/$NAME-prefix install
31+
cp -r $PACKAGE_DIR/$NAME-prefix/opt/fpga-toolchain/* $PACKAGE_DIR/$NAME
3132
fi
3233

3334
test_bin $PACKAGE_DIR/$NAME/bin/ghdl$exe

0 commit comments

Comments
 (0)