Search for libstdc++ on host, rather than hardcoding its location
This commit is contained in:
parent
70979a43a6
commit
70b8ce85a5
1 changed files with 6 additions and 5 deletions
|
@ -49,12 +49,13 @@ main()
|
||||||
copy "$appbin"
|
copy "$appbin"
|
||||||
for dep in $(getdeps "$appbin"); do
|
for dep in $(getdeps "$appbin"); do
|
||||||
copy "$dep"
|
copy "$dep"
|
||||||
done
|
|
||||||
|
|
||||||
# Copy libstdc++ into its own location
|
# Copy libstdc++ into its own location
|
||||||
echo "Copying libstdc++"
|
if grep -qF 'libstdc++.so.6' <<< "$dep"; then
|
||||||
mkdir -p "$DEST/libstdc++/"
|
mkdir -p "$DEST/libstdc++/"
|
||||||
cp "/usr/lib/x86_64-linux-gnu/libstdc++.so.6" "$DEST/libstdc++/" # TODO: find libstdc++ on host
|
cp "$dep" "$DEST/libstdc++/"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# Build LD_LIBRARY_PATH string
|
# Build LD_LIBRARY_PATH string
|
||||||
local libpath=""
|
local libpath=""
|
||||||
|
|
Loading…
Reference in a new issue