firefox-esr78/loffice-libcxx-wrapper.sh

11 lines
210 B
Bash
Raw Normal View History

2020-04-09 18:27:58 +03:00
#!/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