summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStelios Tsampas <loathingkernel@gmail.com>2017-07-31 23:06:11 +0300
committerStelios Tsampas <loathingkernel@gmail.com>2017-07-31 23:06:11 +0300
commited3dc690e04382dce36305091ad2e14038147ab4 (patch)
tree7bb998f2107b4113b73b79173d60bcde803ea110
parentb117a70fd03d780b5817c635d5c337c6ecc36d94 (diff)
downloadpcsxr-ed3dc690e04382dce36305091ad2e14038147ab4.tar.gz
* Don't build PIE executables
This completes MrLavender's patch to the x64 dynarec.
-rw-r--r--.gitignore3
-rw-r--r--configure.ac7
2 files changed, 10 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index de17812e..f8b3baf8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,6 @@ xcuserdata
macosx/Info.plistvers.plist
*.kdev4
linux_build.sh
+project.xcworkspace
+.DS_Store
+build/
diff --git a/configure.ac b/configure.ac
index 001bacbd..eaa49ba4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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])