Hi Matthias,

We get this annoying line all over the place now in Haskell ports logs:

cc: warning: -Wl,--no-execute-only: 'linker' input unused 
[-Wunused-command-line-argument]

I don't know of a simple way to stick the --no-execute-only flag only
into the link and not the compiler line of ghc/settings. So I propose
we suppress this with a simple patch, OK?

diff --git a/lang/ghc/Makefile b/lang/ghc/Makefile
index 27c1ed025e9..ba8e4943682 100644
--- a/lang/ghc/Makefile
+++ b/lang/ghc/Makefile
@@ -12,6 +12,7 @@ NO_CCACHE =           Yes
 USE_NOEXECONLY =       Yes
 
 GHC_VERSION =          9.2.6
+REVISION =             0
 DISTNAME =             ghc-${GHC_VERSION}
 CATEGORIES =           lang devel
 HOMEPAGE =             https://www.haskell.org/ghc/
@@ -113,7 +114,7 @@ CONFIGURE_ARGS +=   
--with-ffi-includes=${LOCALBASE}/include \
 
 CONFIGURE_ENV += SPHINXBUILD=${LOCALBASE}/bin/sphinx-build${MODPY_BIN_SUFFIX}
 
-GHC_CC_OPTS =          -Wl,--no-execute-only
+GHC_CC_OPTS =          -Wl,--no-execute-only -Qunused-arguments
 CONFIGURE_ENV +=       CONF_GCC_LINKER_OPTS_STAGE0="${GHC_CC_OPTS}" \
                        CONF_GCC_LINKER_OPTS_STAGE1="${GHC_CC_OPTS}" \
                        CONF_GCC_LINKER_OPTS_STAGE2="${GHC_CC_OPTS}" \

Thanks
Greg

Reply via email to