Merge pull request #1361 from darealshinji/patch-1

Use -fPIE instead of -fPIC
This commit is contained in:
Moritz Bunkus 2015-07-20 20:54:36 +02:00
commit 9e1965197d

View File

@ -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)}"