Skip to content
This repository was archived by the owner on Nov 4, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions scripts/compile_ghdl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down