summaryrefslogtreecommitdiffstats
path: root/programs/Makefile
diff options
context:
space:
mode:
authorClaes Nästén <pekdon@gmail.com>2021-06-02 07:09:16 (GMT)
committerClaes Nästén <pekdon@gmail.com>2021-06-02 07:09:16 (GMT)
commitc756d90da96451e7124eefe5a4c7f937091c58f0 (patch)
tree7ecd46d434f859d49af48fe3c2997982d69a3103 /programs/Makefile
parent7a966c1511816b53ac93aa2f2a2ff97e036a4a60 (diff)
downloadlz4-c756d90da96451e7124eefe5a4c7f937091c58f0.zip
lz4-c756d90da96451e7124eefe5a4c7f937091c58f0.tar.gz
lz4-c756d90da96451e7124eefe5a4c7f937091c58f0.tar.bz2
add -lrt on Solaris 10, required for nanosleep
Diffstat (limited to 'programs/Makefile')
-rw-r--r--programs/Makefile8
1 files changed, 7 insertions, 1 deletions
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