From 66cdb8984259562a40cd044dc730667fb67a21a3 Mon Sep 17 00:00:00 2001 From: darealshinji Date: Mon, 20 Jul 2015 12:35:03 +0200 Subject: [PATCH] Use -fPIE instead of -fPIC --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index b7d373091..a1b501ac9 100755 --- a/Rakefile +++ b/Rakefile @@ -111,7 +111,7 @@ def setup_globals cflags_common += " -Ilib/libebml -Ilib/libmatroska" if c?(:EBML_MATROSKA_INTERNAL) cflags_common += " #{c(:MATROSKA_CFLAGS)} #{c(:EBML_CFLAGS)} #{c(:EXTRA_CFLAGS)} #{c(:DEBUG_CFLAGS)} #{c(:PROFILING_CFLAGS)} #{c(:USER_CPPFLAGS)}" cflags_common += " -mno-ms-bitfields -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 " if c?(:MINGW) - cflags_common += " -fPIC " if c?(:USE_QT) && !c?(:MINGW) + cflags_common += " -fPIE " if c?(:USE_QT) && !c?(:MINGW) cflags_common += " -DQT_STATICPLUGIN" if c?(:USE_QT) && c?(:MINGW) cflags = "#{cflags_common} #{c(:USER_CFLAGS)}"