about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-02-25 20:31:08 +0100
committerhexcoder- <heiko@hexco.de>2020-02-25 20:31:08 +0100
commitd39830a4dc822b2ee0d6846587a3089259f5447f (patch)
tree392c2549aa68c89122dd4c7ba8ec6132e35db6c1
parentd7c9f947ed264e2b7dc520e92d5de409a5f3a878 (diff)
downloadafl++-d39830a4dc822b2ee0d6846587a3089259f5447f.tar.gz
portability: replace GNU extension of date (-I) with posix "+%y-%m-%d"
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fea6f5c0..e002516a 100644
--- a/Makefile
+++ b/Makefile
@@ -103,9 +103,9 @@ ifneq "$(shell which python)" ""
 endif
 
 ifdef SOURCE_DATE_EPOCH
-    BUILD_DATE ?= $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" -I 2>/dev/null || date -u -r "$(SOURCE_DATE_EPOCH)" -I 2>/dev/null || date -u -I)
+    BUILD_DATE ?= $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" "+%Y-%m-%d" 2>/dev/null || date -u -r "$(SOURCE_DATE_EPOCH)" "+%Y-%m-%d" 2>/dev/null || date -u "+%Y-%m-%d")
 else
-    BUILD_DATE ?= $(shell date -I)
+    BUILD_DATE ?= $(shell date "+%Y-%m-%d")
 endif
 
 ifneq "$(filter Linux GNU%,$(shell uname))" ""