Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Append -static-libgcc on Linux #215

Merged
merged 7 commits into from
Mar 30, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Newline
Signed-off-by: Dhi Aurrahman <dio@rockybars.com>
  • Loading branch information
dio committed Mar 30, 2022
commit 43e579fe32da65e6fe0b72ac7bef1492439c3e51
4 changes: 0 additions & 4 deletions test/exe/require_static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ if [[ $(uname) == "Darwin" ]]; then
exit 0
fi

echo "checking $1"

# We can't rely on the exit code alone, since ldd fails for statically linked binaries.
DYNLIBS=$(ldd "$1" 2>&1) || {
if [[ ! "${DYNLIBS}" =~ 'not a dynamic executable' ]]; then
Expand All @@ -24,5 +22,3 @@ elif [[ "${DYNLIBS}" =~ libstdc\+\+ || "${DYNLIBS}" =~ libgcc ]]; then
echo "${DYNLIBS}"
exit 1
fi

echo "success"