Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/telegram-purple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2019-09-06 02:04:59 +0300
committerBen Wiederhake <BenWiederhake.GitHub@gmx.de>2019-09-06 02:43:04 +0300
commit9a75ceb079b095878aa907cdb9707c29ebecbac0 (patch)
tree86ac00d7ee8ec0aca64bb27030c1ecabc04191ef
parent86715a8a8307c94146e8bd48eda38f61cb8a0c9d (diff)
More reproducible: -frandom-seed, -ffile-prefix-map
-rw-r--r--Makefile.in15
1 files changed, 13 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index d053a74..41c69c6 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -67,10 +67,21 @@ PKG_CONFIG=@PKG_CONFIG@
MSGFMT_PATH=@MSGFMT_PATH@
# Check if -fstack-protector-strong is supported before enabling it
-SPUNSUPPORTED = $(shell $(CC) -fstack-protector-strong 2>&1 | grep -c 'stack-protector-strong')
-ifeq "$(SPUNSUPPORTED)" "0"
+STACK_PROTECTOR_UNSUPPORTED = $(shell $(CC) -fstack-protector-strong 2>&1 | grep -c 'stack-protector-strong')
+ifeq "$(STACK_PROTECTOR_UNSUPPORTED)" "0"
CFLAGS += -fstack-protector-strong
endif
+# Check if -frandom-seed is supported before enabling it
+RANDOM_SEED_UNSUPPORTED = $(shell $(CC) -frandom-seed=77e0418a98676b76729b50fe91cc1f250c14fd8f664f8430649487a6f918926d 2>&1 | grep -c 'random-seed')
+ifeq "$(RANDOM_SEED_UNSUPPORTED)" "0"
+ CFLAGS += -frandom-seed=0x$$(sha256sum $< | cut -f1 -d" ")
+endif
+# Check if -ffile-prefix-map is supported before enabling it
+FILE_PREFIX_MAP_UNSUPPORTED = $(shell $(CC) -ffile-prefix-map=/foo/bar/baz=/quux 2>&1 | grep -c 'file-prefix-map')
+ifeq "$(FILE_PREFIX_MAP_UNSUPPORTED)" "0"
+ # FIXME
+ CFLAGS += "-ffile-prefix-map=$(realpath ${srcdir})=telegram-purple"
+endif
DEP=dep
EXE=bin