Merge commit 'fd36cf6bf6524247a8ff6788c028836fe7d9fd20'
authorJames Almer <jamrial@gmail.com>
Mon, 12 Feb 2018 02:18:25 +0000 (23:18 -0300)
committerJames Almer <jamrial@gmail.com>
Mon, 12 Feb 2018 02:18:59 +0000 (23:18 -0300)
* commit 'fd36cf6bf6524247a8ff6788c028836fe7d9fd20':
  configure: Factorize check_64_bit()

Merged-by: James Almer <jamrial@gmail.com>
1  2 
configure

diff --cc configure
+++ b/configure
@@@ -4895,10 -3804,7 +4895,10 @@@ case "$arch" i
          enabled shared && enable_weak pic
      ;;
      x86)
-         check_64bit x86_32 x86_64 'sizeof(void *) > 4'
+         check_64bit x86_32 x86_64
 +        # Treat x32 as x64 for now. Note it also needs pic if shared
 +        test "$subarch" = "x86_32" && check_cpp_condition stddef.h 'defined(__x86_64__)' &&
 +            subarch=x86_64 && enable x86_64 && disable x86_32
          if enabled x86_64; then
              enabled shared && enable_weak pic
              objformat=elf64