mpp/merge_static_lib.sh
MarcA711 9f9986752f fix[cmake]: fix static build
Signed-off-by: MarcA711 <40744649+MarcA711@users.noreply.github.com>
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I4bd4a7543584685b20089d3953e700f5612523e7
2024-04-24 09:31:01 +08:00

10 lines
187 B
Bash
Executable File

#!/bin/bash
cd $1
rm -rf mpp/lib'$2$'.a
SCRIPT=$'CREATE mpp/lib'$2$'.a\n'
SCRIPT=$SCRIPT$(find . -name '*.a' -exec echo 'ADDLIB {}' \;)
SCRIPT=$SCRIPT$'\nSAVE\nEND\n'
ar -M <<< $SCRIPT