pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils/coreutils



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Tue Jan 16 10:10:00 UTC 2018

Modified Files:
        pkgsrc/sysutils/coreutils: Makefile.common

Log Message:
coreutils: Fix issue with clang -errwarn on SunOS.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/sysutils/coreutils/Makefile.common

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/coreutils/Makefile.common
diff -u pkgsrc/sysutils/coreutils/Makefile.common:1.16 pkgsrc/sysutils/coreutils/Makefile.common:1.17
--- pkgsrc/sysutils/coreutils/Makefile.common:1.16      Wed Jan 18 21:10:42 2017
+++ pkgsrc/sysutils/coreutils/Makefile.common   Tue Jan 16 10:10:00 2018
@@ -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 @@ CONFIGURE_ENV.DragonFly+=    gl_cv_search_
 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