Module Name: src Committed By: christos Date: Fri Nov 8 16:59:26 UTC 2024
Modified Files: src/external/bsd/zstd/lib: Makefile Log Message: try to fix the sun2 build: don't build pic since we are linking statically. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 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.5 src/external/bsd/zstd/lib/Makefile:1.6 --- src/external/bsd/zstd/lib/Makefile:1.5 Thu Nov 7 12:52:58 2024 +++ src/external/bsd/zstd/lib/Makefile Fri Nov 8 11:59:26 2024 @@ -1,6 +1,10 @@ -# $NetBSD: Makefile,v 1.5 2024/11/07 17:52:58 christos Exp $ +# $NetBSD: Makefile,v 1.6 2024/11/08 16:59:26 christos Exp $ +.if ${MACHINE} == "sun2" +LIBISPRIVATE=yes +.else LIBISPRIVATE=pic +.endif NOLINT=yes # XXX WARNS?= 4 .include <bsd.init.mk> @@ -59,11 +63,6 @@ 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