[Notes] [Git][BuildStream/buildstream][coldtom/autotools-libtool] Upstream libtool .la file removal



Title: GitLab

Thomas Coldrick pushed to branch coldtom/autotools-libtool at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • buildstream/plugins/elements/autotools.yaml
    ... ... @@ -50,6 +50,27 @@ variables:
    50 50
       #
    
    51 51
       # notparallel: True
    
    52 52
     
    
    53
    +  remove_libtool_modules: "true"
    
    54
    +  remove_libtool_libraries: "true"
    
    55
    +  delete_libtool_files: |
    
    56
    +      find "%{install-root}" -name "*.la" -print0 | while read -d '' -r file; do
    
    57
    +        if grep '^shouldnotlink=yes$' "${file}" &>/dev/null; then
    
    58
    +          if %{remove_libtool_modules}; then
    
    59
    +            echo "Removing ${file}."
    
    60
    +            rm "${file}"
    
    61
    +          else
    
    62
    +            echo "Not removing ${file}."
    
    63
    +          fi
    
    64
    +        else
    
    65
    +          if %{remove_libtool_libraries}; then
    
    66
    +            echo "Removing ${file}."
    
    67
    +            rm "${file}"
    
    68
    +          else
    
    69
    +            echo "Not removing ${file}."
    
    70
    +          fi
    
    71
    +        fi
    
    72
    +      done
    
    73
    +
    
    53 74
     config:
    
    54 75
     
    
    55 76
       # Commands for configuring the software
    
    ... ... @@ -72,6 +93,8 @@ config:
    72 93
       install-commands:
    
    73 94
       - |
    
    74 95
         %{make-install}
    
    96
    +  - |
    
    97
    +    %{delete_libtool_files}
    
    75 98
     
    
    76 99
       # Commands for stripping debugging information out of
    
    77 100
       # installed binaries
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]