Module Name: src
Committed By: christos
Date: Thu Nov 7 17:52:58 UTC 2024
Modified Files:
src/external/bsd/zstd/lib: Makefile
Log Message:
fix sun2 build.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/bsd/zstd/lib/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/zstd/lib/Makefile
diff -u src/external/bsd/zstd/lib/Makefile:1.4 src/external/bsd/zstd/lib/Makefile:1.5
--- src/external/bsd/zstd/lib/Makefile:1.4 Sat Nov 2 18:02:40 2024
+++ src/external/bsd/zstd/lib/Makefile Thu Nov 7 12:52:58 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2024/11/02 22:02:40 christos Exp $
+# $NetBSD: Makefile,v 1.5 2024/11/07 17:52:58 christos Exp $
LIBISPRIVATE=pic
NOLINT=yes # XXX
@@ -59,6 +59,11 @@ CPPFLAGS+= -I${SRCDIR} -DZSTD_MULTITHREA
LIBDPLIBS += pthread ${NETBSDSRCDIR}/lib/libpthread
+.if ${MACHINE} == "sun2"
+# large got offsets: generate movel instead of lea for got loading
+COPTS.zstd_lazy.c += -mid-shared-library
+.endif
+
.if ${LIBISPRIVATE:Uno} == "no"
INCS= zdict.h zstd.h zstd_errors.h
INCSDIR= /usr/include