summaryrefslogtreecommitdiff
path: root/lang/ghc/Makefile
diff options
context:
space:
mode:
authortron <tron>1999-12-27 18:20:11 +0000
committertron <tron>1999-12-27 18:20:11 +0000
commit346b8689cb455ebfe9408e21b7a115ef9685badf (patch)
tree5192b2f214e3cb4efba3f23224806d0e54288493 /lang/ghc/Makefile
parenta817ad221c03dbbeb4c5a9c153b831b4973cae9b (diff)
downloadpkgsrc-346b8689cb455ebfe9408e21b7a115ef9685badf.tar.gz
- Fix broken object file format recognition.
- Patch memory management to recognize NetBSD-i386 ELF. XXX This package still doesn't build on ELF systems due to problems with XXX included assembler sources.
Diffstat (limited to 'lang/ghc/Makefile')
-rw-r--r--lang/ghc/Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/lang/ghc/Makefile b/lang/ghc/Makefile
index d19d26d23a7..31516129811 100644
--- a/lang/ghc/Makefile
+++ b/lang/ghc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 1999/12/16 14:10:14 agc Exp $
+# $NetBSD: Makefile,v 1.4 1999/12/27 18:20:11 tron Exp $
# FreeBSD Id: ports/lang/ghc/Makefile,v 1.1.1.1 1999/11/10 17:25:28 nectar Exp
DISTNAME= ghc-4.04
@@ -17,7 +17,7 @@ USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-hc-boot --libdir=${PREFIX}/lib/ghc
-CONFIGURE_ENV+= HASKELL_OBJ_FMT=`cat ${WRKDIR}/obj_fmt`
+CONFIGURE_ENV+= HASKELL_OBJ_FMT=${OBJECT_FMT}
WRKSRC= ${WRKDIR}/fptools
# a number of non-i386 platforms, including solaris/sparc, osf/alpha
@@ -32,12 +32,6 @@ ONLY_FOR_PLATFORM= NetBSD-*-i386
# won't try to create them.
#
pre-configure:
- ( lnl=${WRKDIR}/longandlow; \
- ${ECHO} 'int main(){exit(0);}' > $$lnl.c && \
- ${CC} $$lnl.c -o $$lnl && \
- file $$lnl | ( ${EGREP} '[^a-zA-Z][Ee][Ll][Ff][^a-zA-Z]' && \
- ${ECHO} ELF || ${ECHO} a.out ) \
- ) > ${WRKDIR}/obj_fmt
${SED} < ${WRKSRC}/ghc/driver/ghc.lprl \
> ${WRKSRC}/ghc/driver/ghc.lprl.hacked \
'/push(@SysLibrary, "-l$LibGmp")/s%^%push(@SysLibrary, "-L'${PREFIX}/lib'");%' && \