Skip to content
Snippets Groups Projects
  1. May 07, 2021
  2. Sep 09, 2020
  3. Oct 02, 2019
    • Simon McVittie's avatar
      build: Check that the compiler and --host are consistent · 8bf9b114
      Simon McVittie authored
      
      libcapsule's use with biarch containers like the Steam Runtime will
      frequently make it necessary to compile it for both x86_64 and i386.
      
      On recent Debian-derived OSs this is OK, because the toolchain is
      provided as a complete set of cross-compiler-style prefixed tools like
      i686-linux-gnu-gcc; but some OSs, like Arch Linux and very old versions
      of Debian, rely on 'gcc -m32' for their biarch support. This makes it
      very easy to do
      
          ./configure --build=x86_64-linux-gnu --host=i686-linux-gnu
      
      and accidentally produce x86_64 binaries, because there is no
      i686-linux-gnu-gcc. Give the user a hint towards the correct invocation
      in this case, which is:
      
          ./configure --build=x86_64-linux-gnu --host=i686-linux-gnu CC='gcc -m32'
      
      I've implemented this as a reusable macro, in case we want to add it to
      other projects that are likely to be cross-compiled by inexperienced
      cross-compiler users.
      
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      8bf9b114
  4. Sep 12, 2019
  5. Sep 11, 2019
  6. Aug 21, 2019
  7. Aug 15, 2019
  8. Jul 16, 2019
  9. Jul 01, 2019
  10. Jun 27, 2019
  11. Nov 10, 2017
  12. Sep 15, 2017
  13. Sep 14, 2017
Loading