summaryrefslogtreecommitdiff
path: root/mpn/x86/x86-defs.m4
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-10-01 22:05:02 +0200
committerKevin Ryde <user42@zip.com.au>2001-10-01 22:05:02 +0200
commit0a4303fa1722ff688729bbd35e6e36c175ff4f00 (patch)
treeedb38de69b88080e875e31bd196fc4be954d0407 /mpn/x86/x86-defs.m4
parentbb094d57646550b90a014e1ed634d9c35132e262 (diff)
downloadgmp-0a4303fa1722ff688729bbd35e6e36c175ff4f00.tar.gz
* mpn/x86/x86-defs.m4: Undefine PIC if DLL_EXPORT is set.
Diffstat (limited to 'mpn/x86/x86-defs.m4')
-rw-r--r--mpn/x86/x86-defs.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/mpn/x86/x86-defs.m4 b/mpn/x86/x86-defs.m4
index af49b36eb..1a5f191c8 100644
--- a/mpn/x86/x86-defs.m4
+++ b/mpn/x86/x86-defs.m4
@@ -44,6 +44,13 @@ dnl nor in macro parameters like text passed to forloop() or ifdef().
deflit(BYTES_PER_MP_LIMB, 4)
+dnl Libtool gives -DPIC -DDLL_EXPORT to indicate a cygwin or mingw DLL. We
+dnl undefine PIC since we don't need to be position independent in this
+dnl case and definitely don't want the ELF style _GLOBAL_OFFSET_TABLE_ etc.
+
+ifdef(`DLL_EXPORT',`undefine(`PIC')')
+
+
dnl --------------------------------------------------------------------------
dnl Replacement PROLOGUE/EPILOGUE with more error checking. Nesting and
dnl overlapping not allowed.