Skip to content

Commit

Permalink
ghc: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
echawk committed Aug 11, 2024
1 parent 8f27791 commit 7655c24
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions langs/ghc/build
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh -e

export DESTDIR="$1"

./configure \
--prefix="/usr" \
--with-system-libffi \
Expand All @@ -8,10 +10,4 @@
sed -e 's/unknown/pc/g' llvm-targets > _
mv -f _ llvm-targets

# FIXME: currently this package is broken, since we cannot specify
# the DESTDIR. prefix here is meant to just be '/usr/' not
# the hack we currently have.

# I think that it should be possible to create a bindist, then copy
# said bindist over to the appropriate directory
./hadrian/build install --prefix="$1/usr" -j --flavour=quickest+no_profiled_libs --docs=none --skip-depends
./hadrian/build install --prefix="/usr" -j --flavour=quickest+no_profiled_libs --docs=none --skip-depends

0 comments on commit 7655c24

Please sign in to comment.