diff --git a/langs/ghc/build b/langs/ghc/build index 0de26df8..0db38ec4 100755 --- a/langs/ghc/build +++ b/langs/ghc/build @@ -1,5 +1,7 @@ #!/bin/sh -e +export DESTDIR="$1" + ./configure \ --prefix="/usr" \ --with-system-libffi \ @@ -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