CVSROOT: /cvs Module name: ports Changes by: k...@cvs.openbsd.org 2017/04/30 15:33:26
Modified files: lang/ghc : Makefile Log message: Suppress a lot of (not all) warnings when using clang: ghc uses cc for generating object files from assembler files and passes the CONF_CC_OPTS_STAGE? flags to it, which clang doesn't like, so add -Wno-unused-command-line-argument to the flags passed to cc if it's clang. To let this work for the bootstrap compiler, properly CONFIGURE_ENV when installing the bootstrap (in post-patch:). This also makes the hack patching the bootstrap/bin/ghc script in post-patch: obsolete. prodded by (and with some hints from) espie@ ~here are still a lot of warnings, most about macros #defined in storage/ClosureMacros.h. Those should be fixed in a separate step, probably after an update to ghc-8.