summaryrefslogtreecommitdiffstats
path: root/programs
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2021-08-16 23:43:17 (GMT)
committerYann Collet <cyan@fb.com>2021-08-16 23:43:17 (GMT)
commit596c7472116a9204c5a32cc3d9e588fa8a4b6feb (patch)
tree803f4bcc089a4e05979a2bbc2618278c4ad7795d /programs
parente78eeec86e696f318a0ad1e71d6ad50555d1c0a9 (diff)
downloadlz4-596c7472116a9204c5a32cc3d9e588fa8a4b6feb.zip
lz4-596c7472116a9204c5a32cc3d9e588fa8a4b6feb.tar.gz
lz4-596c7472116a9204c5a32cc3d9e588fa8a4b6feb.tar.bz2
make UNAME externally definable
on top of providing a central definition place, which eases maintenance, it might also help for #1021. Also : updated doc
Diffstat (limited to 'programs')
-rw-r--r--programs/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/programs/Makefile b/programs/Makefile
index 811ab72..ace0d03 100644
--- a/programs/Makefile
+++ b/programs/Makefile
@@ -55,7 +55,8 @@ CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS)
include ../Makefile.inc
-ifeq ($(TARGET_OS)$(shell uname -r),SunOS5.10)
+OS_VERSION ?= $(UNAME) -r
+ifeq ($(TARGET_OS)$(shell $(OS_VERSION)),SunOS5.10)
LDFLAGS += -lrt
endif