From 9c7a2badba95a9379dfd0eb5b9c27c5eb395aad0 Mon Sep 17 00:00:00 2001 From: Ian Macphail Date: Tue, 18 Sep 2018 13:28:31 +0100 Subject: [PATCH] [[ BUILD ]] Disable PIE when linking executables on Linux This option is enabled by default when building on Ubuntu 18.04LTS, which causes problems when linking against libraries built without PIE support. --- config/linux-settings.gypi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/linux-settings.gypi b/config/linux-settings.gypi index 17712e03c22..74fea53165d 100644 --- a/config/linux-settings.gypi +++ b/config/linux-settings.gypi @@ -38,6 +38,15 @@ ], }, ], + [ + '_type == "executable"', + { + 'ldflags': + [ + '-no-pie', + ], + }, + ], [ 'server_mode == 0', {