diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2021-08-06 17:10:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-06 17:10:00 (GMT) |
commit | aeac6227d20f485adde5874fb37d2d3be94d8c10 (patch) | |
tree | 0ac0161baabec34e4af6f4ef6b9e3084783914ae /programs | |
parent | 163db1675c0cb5c4e35266e1c1f73e119227ad30 (diff) | |
parent | c756d90da96451e7124eefe5a4c7f937091c58f0 (diff) | |
download | lz4-aeac6227d20f485adde5874fb37d2d3be94d8c10.zip lz4-aeac6227d20f485adde5874fb37d2d3be94d8c10.tar.gz lz4-aeac6227d20f485adde5874fb37d2d3be94d8c10.tar.bz2 |
Merge pull request #999 from pekdon/solaris-10
add -lrt on Solaris 10, required for nanosleep
Diffstat (limited to 'programs')
-rw-r--r-- | programs/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/programs/Makefile b/programs/Makefile index 3ac17c0..811ab72 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 |