pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/coreutils coreutils: Fix issue with clang -er...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/433b5f2ce50a
branches:  trunk
changeset: 374101:433b5f2ce50a
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Jan 16 10:10:00 2018 +0000

description:
coreutils: Fix issue with clang -errwarn on SunOS.

diffstat:

 sysutils/coreutils/Makefile.common |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r b1981e35e270 -r 433b5f2ce50a sysutils/coreutils/Makefile.common
--- a/sysutils/coreutils/Makefile.common        Tue Jan 16 09:48:46 2018 +0000
+++ b/sysutils/coreutils/Makefile.common        Tue Jan 16 10:10:00 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.16 2017/01/18 21:10:42 wiz Exp $
+# $NetBSD: Makefile.common,v 1.17 2018/01/16 10:10:00 jperkin Exp $
 #
 # used by sysutils/coreutils/Makefile
 # used by misc/gnuls/Makefile
@@ -46,6 +46,12 @@
 CFLAGS+=               -O2
 .endif
 
+# clang on SunOS parses -errwarn as an -e entry point argument to the linker,
+# which ignores it as it's a duplicate argument.  Turn it off explicitly.
+.if ${PKGSRC_COMPILER} == "clang"
+CONFIGURE_ENV.SunOS+=  gl_cv_warn_c__errwarn=no
+.endif
+
 # Explicitly disable inotify support whilst it is Linux-specific.
 CONFIGURE_ENV.SunOS+=  ac_cv_func_inotify_init=no
 



Home | Main Index | Thread Index | Old Index