From 065c79f0dfe8a7beae0609be64197cfd4f1e22d5 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 22 Jul 2021 18:11:02 +0200 Subject: [PATCH] Re-enable building position-independent executables on Linux/*BSD This provides better security at the cost of having misleading binary icons on some file managers. Now that recent Linux distributions no longer allow executing binaries by double-clicking them in a file manager (even if the binary is set to be executable), the usability cost of PIE is lowered. You have to use a terminal or install a `.desktop` file nowadays. --- platform/linuxbsd/detect.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py index 3e3ed469ed5..f535c9e7bd5 100644 --- a/platform/linuxbsd/detect.py +++ b/platform/linuxbsd/detect.py @@ -201,11 +201,6 @@ def configure(env): env.Append(CCFLAGS=["-pipe"]) env.Append(LINKFLAGS=["-pipe"]) - # -fpie and -no-pie is supported on GCC 6+ and Clang 4+, both below our - # minimal requirements. - env.Append(CCFLAGS=["-fpie"]) - env.Append(LINKFLAGS=["-no-pie"]) - ## Dependencies env.ParseConfig("pkg-config x11 --cflags --libs")