Changeset a381b52 in mainline


Ignore:
Timestamp:
2023-10-20T14:10:02Z (14 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b2cbc0b
Parents:
972c428c
git-author:
Jiri Svoboda <jiri@…> (2023-10-19 17:06:25)
git-committer:
Jiri Svoboda <jiri@…> (2023-10-20 14:10:02)
Message:

export.sh needs to deal with thin archives

Since I couldn't find a way to stop Meson from producing them
(sigh!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/export.sh

    r972c428c ra381b52  
    6767ninja devel-headers
    6868
     69#
     70# Meson may produce thin archives. These cannot be simply copied to another
     71# location. Copy them using ar instead, converting them to regular,
     72# non-thin archives in the process.
     73#
    6974mkdir -p "$EXPORT_DIR/lib"
    70 cp -t "$EXPORT_DIR/lib" $EXPORT_LIBS
     75for lpath in $EXPORT_LIBS; do
     76        dest="$EXPORT_DIR/lib/$(basename $lpath)"
     77        ar -t $lpath | xargs ar crs $dest
     78done
     79
    7180rm -rf "$EXPORT_DIR/include"
    7281cp -R dist/include "$EXPORT_DIR/include"
Note: See TracChangeset for help on using the changeset viewer.