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

Commit c8fa7b9

Browse files
committed
ghdl: use DESTDIR instead of --prefix
1 parent 071ccd2 commit c8fa7b9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scripts/compile_ghdl.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,15 @@ 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=/
2322
$MAKE -j$J GNAT_LARGS="-static-libgcc $ZLIB_ROOT/lib/libz.a"
24-
$MAKE install
23+
$MAKE DESTDIR=$PACKAGE_DIR/$NAME install
2524

2625
export PATH="$OLD_PATH"
2726
else
28-
./configure --prefix=$PACKAGE_DIR/$NAME
27+
./configure --prefix=/
2928
$MAKE -j$J GNAT_BARGS="-bargs -E -static" GNAT_LARGS="-static -lz"
30-
$MAKE install
29+
$MAKE DESTDIR=$PACKAGE_DIR/$NAME install
3130
fi
3231

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

0 commit comments

Comments
 (0)