* Don't build PIE executables

This completes MrLavender's patch to the x64 dynarec.
This commit is contained in:
Stelios Tsampas 2017-07-31 23:06:11 +03:00
parent b117a70fd0
commit ed3dc690e0
2 changed files with 10 additions and 0 deletions

3
.gitignore vendored
View File

@ -8,3 +8,6 @@ xcuserdata
macosx/Info.plistvers.plist
*.kdev4
linux_build.sh
project.xcworkspace
.DS_Store
build/

View File

@ -17,6 +17,13 @@ AM_PROG_AS
LT_PREREQ([2.2.6])
LT_INIT([disable-static])
AX_APPEND_LINK_FLAGS([-fno-pie])
AX_COMPILER_VENDOR
if test "$ax_cv_c_compiler_vendor" = "gnu"; then
AX_CHECK_LINK_FLAG([-no-pie],[AX_APPEND_LINK_FLAGS([-no-pie])],)
AX_CHECK_LINK_FLAG([-nopie],[AX_APPEND_LINK_FLAGS([-nopie])],)
fi
AM_GLIB_GNU_GETTEXT
IT_PROG_INTLTOOL([0.35.0])