From c756d90da96451e7124eefe5a4c7f937091c58f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claes=20N=C3=A4st=C3=A9n?= Date: Wed, 2 Jun 2021 09:09:16 +0200 Subject: add -lrt on Solaris 10, required for nanosleep --- programs/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/programs/Makefile b/programs/Makefile index f471109..94c4b14 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -52,13 +52,19 @@ DEBUGFLAGS= -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow \ -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes \ -Wpointer-arith -Wstrict-aliasing=1 CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS) + +include ../Makefile.inc + +ifeq ($(TARGET_OS)$(shell uname -r),SunOS5.10) +LDFLAGS += -lrt +endif + FLAGS = $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) LZ4_VERSION=$(LIBVER) MD2ROFF = ronn MD2ROFF_FLAGS = --roff --warnings --manual="User Commands" --organization="lz4 $(LZ4_VERSION)" -include ../Makefile.inc default: lz4-release -- cgit v0.12