From 850266bd81e2570468a670991df34d64910b27ee Mon Sep 17 00:00:00 2001 From: umarcor Date: Mon, 12 Oct 2020 17:42:56 +0200 Subject: [PATCH] ghdl: use prefix '/opt/fpga-toolchain' --- scripts/compile_ghdl.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/compile_ghdl.sh b/scripts/compile_ghdl.sh index d04cac2..5757202 100755 --- a/scripts/compile_ghdl.sh +++ b/scripts/compile_ghdl.sh @@ -22,16 +22,17 @@ if [ $ARCH == "darwin" ]; then OLD_PATH=$PATH export PATH="$GNAT_ROOT/bin:$PATH" - ./configure --prefix=$PACKAGE_DIR/$NAME - + ./configure --prefix=/opt/fpga-toolchain $MAKE -j$J GNAT_LARGS="-static-libgcc $ZLIB_ROOT/lib/libz.a" - $MAKE install + $MAKE DESTDIR=$PACKAGE_DIR/$NAME-prefix install + cp -r $PACKAGE_DIR/$NAME-prefix/opt/fpga-toolchain/* $PACKAGE_DIR/$NAME export PATH="$OLD_PATH" else - ./configure --prefix=$PACKAGE_DIR/$NAME + ./configure --prefix=/opt/fpga-toolchain $MAKE -j$J GNAT_BARGS="-bargs -E -static" GNAT_LARGS="-static -lz" - $MAKE install + $MAKE DESTDIR=$PACKAGE_DIR/$NAME-prefix install + cp -r $PACKAGE_DIR/$NAME-prefix/opt/fpga-toolchain/* $PACKAGE_DIR/$NAME fi test_bin $PACKAGE_DIR/$NAME/bin/ghdl$exe