pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/wasi-libc wasi-libc: fix build on SunOS



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b106051a3d94
branches:  trunk
changeset: 371372:b106051a3d94
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Mon Jan 10 00:00:05 2022 +0000

description:
wasi-libc: fix build on SunOS

diffstat:

 lang/wasi-libc/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 635c4194440d -r b106051a3d94 lang/wasi-libc/Makefile
--- a/lang/wasi-libc/Makefile   Sun Jan 09 23:59:35 2022 +0000
+++ b/lang/wasi-libc/Makefile   Mon Jan 10 00:00:05 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2022/01/09 23:42:03 tnn Exp $
+# $NetBSD: Makefile,v 1.7 2022/01/10 00:00:05 tnn Exp $
 
 GITHUB_PROJECT=        wasi-libc
 GITHUB_TAG=    ad5133410f66b93a2381db5b542aad5e0964db96
@@ -37,6 +37,11 @@
 MAKE_FLAGS+=   INSTALL_DIR=${DESTDIR}${PREFIX}/wasi
 BUILD_TARGET=  finish
 
+# iconv.h from libiconv get pulled in on SunOS (via clang)
+# It conflicts with musl libc so must be removed.
+pre-configure:
+       rm -f ${BUILDLINK_DIR}/include/iconv.h
+
 ABI=                   # 32
 CFLAGS=                        -O2
 CXXFLAGS=              -O2



Home | Main Index | Thread Index | Old Index