]> git.sesse.net Git - ffmpeg/commitdiff
Merge commit 'd070b9b703a542429a13db9623109ae20474c775'
authorJames Almer <jamrial@gmail.com>
Thu, 16 Nov 2017 16:11:52 +0000 (13:11 -0300)
committerJames Almer <jamrial@gmail.com>
Thu, 16 Nov 2017 16:11:52 +0000 (13:11 -0300)
* commit 'd070b9b703a542429a13db9623109ae20474c775':
  configure: Coalesce some arch configuration and PIC handling

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

diff --cc configure
index 0fc63cbfca25378c36c489874ed4b005f137fead,3bad7fb72cf48b839e8425365093a0011ef5d492..3a5840ad0f74c0528de8dad2bcea409733d89cfc
+++ b/configure
@@@ -3367,21 -2587,20 +3367,22 @@@ mandir_default='${prefix}/share/man
  # toolchain
  ar_default="ar"
  cc_default="gcc"
 +cxx_default="g++"
  host_cc_default="gcc"
 -x86asmexe_default="nasm"
 -ln_s="ln -s -f"
 +doxygen_default="doxygen"
 +install="install"
 +ln_s_default="ln -s -f"
  nm_default="nm -g"
  pkg_config_default=pkg-config
 -ranlib="ranlib"
 -strip="strip"
 +ranlib_default="ranlib"
 +strip_default="strip"
  version_script='--version-script'
 -
 -# machine
 -arch_default=$(uname -m)
 -cpu="generic"
 -intrinsics="none"
+ objformat="elf32"
 +x86asmexe_default="nasm"
 +windres_default="windres"
 +nvcc_default="nvcc"
 +nvccflags_default="-gencode arch=compute_30,code=sm_30 -O2"
 +striptype="direct"
  
  # OS
  target_os_default=$(tolower $(uname -s))
@@@ -4848,25 -3796,13 +4850,16 @@@ case "$arch" i
      ;;
      x86)
          check_64bit x86_32 x86_64 'sizeof(void *) > 4'
-         # Treat x32 as x64 for now. Note it also needs spic=$shared
++        # 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
-         if test "$subarch" = "x86_64"; then
-             spic=$shared
++            subarch=x86_64 && enable x86_64 && disable x86_32
+         if enabled x86_64; then
+             enabled shared && enable_weak pic
+             objformat=elf64
          fi
      ;;
-     ppc)
-         check_cc <<EOF && subarch="ppc64"
-         int test[(int)sizeof(char*) - 7];
- EOF
-     ;;
  esac
  
- enable $subarch
- enabled spic && enable_weak pic
- enabled x86_64 && objformat=elf64 || objformat="elf32"
  # OS specific
  case $target_os in
      aix)