Skip to content
Snippets Groups Projects
  1. 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
  2. Dec 20, 2017
  3. Nov 17, 2017
  4. Nov 10, 2017
  5. Oct 11, 2017
  6. Oct 10, 2017
  7. Sep 28, 2017
  8. Sep 19, 2017
  9. Sep 15, 2017
  10. Sep 14, 2017
  11. Jul 21, 2017
  12. Jul 20, 2017
  13. Jul 19, 2017
  14. Jul 17, 2017
  15. Jul 04, 2017
  16. May 16, 2017
  17. May 15, 2017
    • Vivek Das Mohapatra's avatar
      Modify generated file dependencies to allow optional dependencies · 15f9355a
      Vivek Das&nbsp;Mohapatra authored
      We now reserve the shim/lib<FOO>.so.c.<WHATEVER> pattern for the
      dependencies of the generated .so.c file.
      
      The shim/lib<FOO>.so.<WHATEVER> pattern is now used for generated
      intermediates.
      
      This allows two useful things: We don't occasionally get a second
      rebuild of the generated .so.c file due to timer resolution problems
      and we can depend on extra .so.c.* files if they exist and ignore
      them otherwise: we will need the latter as some libraries (libGL)
      need bespoke dlopen/dlmopen wrapper logic and others can just live
      with the default implementation.
      15f9355a
  18. May 12, 2017
  19. May 09, 2017
    • Vivek Das Mohapatra's avatar
      libcapsule is a library used to implement proxying/shim libraries · 161ad9e4
      Vivek Das&nbsp;Mohapatra authored
      The generated shim libraries (libz and libGL are included as examples)
      provide the same symbols as the target library but do not expose the
      symbols from their dependencies to other objects that link to them.
      
      They are also capable of using a filesystem tree starting somwhere
      other than / to get the dependencies for the target.
      
      Included are tools to help generate said proxy libraries with minimal
      manual intervention.
      161ad9e4
Loading