Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Add support for packaging shared library for Ruby on x86-64 Linux and macOS #26

Merged
merged 9 commits into from
Feb 22, 2022

Commits on Feb 21, 2022

  1. Configuration menu
    Copy the full SHA
    d53edbd View commit details
    Browse the repository at this point in the history
  2. Cleanup old versions from Rakefile

    We don't support using an up-to-date `Rakefile` to release a version
    other than the current in `version.rb` so it doesn't make sense to
    keep old versions around.
    ivoanjo committed Feb 21, 2022
    Configuration menu
    Copy the full SHA
    7362fe1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3482b6b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0823e07 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f3797e8 View commit details
    Browse the repository at this point in the history
  6. Package libddprof shared library only, ignore static library

    This is still WIP, since the 0.3.0 release doesn't actually
    ship a shared library.
    ivoanjo committed Feb 21, 2022
    Configuration menu
    Copy the full SHA
    5dbebd2 View commit details
    Browse the repository at this point in the history
  7. Code reformatter fixes

    ivoanjo committed Feb 21, 2022
    Configuration menu
    Copy the full SHA
    ac89169 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    94620e8 View commit details
    Browse the repository at this point in the history
  9. Add pkg-config variant that sets rpath

    The `ddprof_ffi_with_rpath.pc` includes the linker flags
    `-Wl,-rpath,${libdir}` so that libddprof can be linked to and used in
    the directory it gets installed to.
    
    Without this, we would need to set the same flags in the libddprof user
    side, or use `LD_LIBRARY_PATH` or some other mean to tell the OS how
    to find libddprof.
    
    These two links helped me figure this out:
    * https://amir.rachum.com/blog/2016/09/17/shared-libraries/
    * mesonbuild/meson#4027
    
    Also included is a change to `ffi-build.sh` so that the macOS dynamic
    library is setup to correctly being used with rpath.
    ivoanjo committed Feb 21, 2022
    Configuration menu
    Copy the full SHA
    d16e0cd View commit details
    Browse the repository at this point in the history