firefox-esr78/loffice-libcxx-wrapper.sh
2020-04-09 18:27:58 +03:00

10 lines
210 B
Bash

#!/bin/sh
linker_flags="$(echo "$@" | tr ' ' '\n' | grep '^\-l' | tr '\n' ' ')"
add=""
if ! echo "$@" | grep -q 'stdc++-gcc10'; then
add="$CXXFLAGS"
fi
/usr/bin/clang++ $add "$@" $LIBCCX_LIBS $linker_flags