Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: 2f73a373db44
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: fd97db43bcb0
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jun 11, 2018

  1. pruneLibtoolFiles: init setup hook (#41819)

    A .la file specifies linker flags to link with the library it describes. Its
    "dependency_libs" field lists the libraries that this library depends upon.
    This list often contains "-l" flags without corresponding "-L" flags. Many
    packages in Nixpkgs deal with this in one of these ways:
    - delete .la file [1]
    - clear dependency_libs [2]
    - add -L flags to dependency_libs [3]
    - propagate dependencies [4]
    
    Sometimes "dependency_libs" contain wrong "-L" flags pointing to the "dev"
    output with headers rather than to the main output with libraries. They have to
    be edited or deleted to reduce closure size [5].
    
    Deleting .la files is often but not always safe [6].  Atomatically deleting as
    many of them as possible is complex [7].  Deleting .la files that describe
    shared rather than static libraries is probably safe; but clearing their
    "dependency_libs" field achieves the same effect with less potential for
    unintended consequences.  This is the approach that may be enabled for all
    Nixpkgs.
    
    [1] 2a79d29
    [2] c83a530
    [3] 9e0dcf3
    [4] 01134e6
    [5] f6c73f1
    [6] https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Handling_Libtool_Archives
    [7] https://github.com/gentoo/gentoo/blob/fb1f2435/eclass/ltprune.eclass
    orivej committed Jun 11, 2018
    Copy the full SHA
    fd97db4 View commit details
    Browse the repository at this point in the history