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

Commit

Permalink
ghdl: use DESTDIR instead of --prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Oct 12, 2020
1 parent 1482016 commit eedff59
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/compile_ghdl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@ if [ $ARCH == "darwin" ]; then
OLD_PATH=$PATH
export PATH="$GNAT_ROOT/bin:$PATH"

./configure --prefix=$PACKAGE_DIR/$NAME

./configure --prefix=/
$MAKE -j$J GNAT_LARGS="-static-libgcc $ZLIB_ROOT/lib/libz.a"
$MAKE install
$MAKE DESTDIR=$PACKAGE_DIR/$NAME install

export PATH="$OLD_PATH"
else
./configure --prefix=$PACKAGE_DIR/$NAME
./configure --prefix=/
$MAKE -j$J GNAT_BARGS="-bargs -E -static" GNAT_LARGS="-static -lz"
$MAKE install
$MAKE DESTDIR=$PACKAGE_DIR/$NAME install
fi

test_bin $PACKAGE_DIR/$NAME/bin/ghdl$exe
Expand Down

0 comments on commit eedff59

Please sign in to comment.