diff options
author | jperkin <jperkin@pkgsrc.org> | 2018-01-16 10:10:00 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2018-01-16 10:10:00 +0000 |
commit | b163cbe5e3c3bbdbf811e8aa3b0e36eac7615526 (patch) | |
tree | 1c29ff2d58e8bf96a0d98bc1a7eda0e542969918 /sysutils/coreutils | |
parent | 8902962ff14cf5b1db7316de2033a027907dc918 (diff) | |
download | pkgsrc-b163cbe5e3c3bbdbf811e8aa3b0e36eac7615526.tar.gz |
coreutils: Fix issue with clang -errwarn on SunOS.
Diffstat (limited to 'sysutils/coreutils')
-rw-r--r-- | sysutils/coreutils/Makefile.common | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sysutils/coreutils/Makefile.common b/sysutils/coreutils/Makefile.common index 3fbeb81e8b4..86422b41ac5 100644 --- a/sysutils/coreutils/Makefile.common +++ b/sysutils/coreutils/Makefile.common @@ -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_pthread_join=-lpthread 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 |