2019-12-14 05:07:04 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
WRAPPER_INCLUDEDIR="-I$STAGING_DIR/usr/include/c++/v1"
|
|
|
|
WRAPPER_LIBDIR="-L$STAGING_DIR/usr/lib"
|
|
|
|
WRAPPER_LIBS="-lc -lgcc_s -lssp_nonshared"
|
|
|
|
|
|
|
|
WRAPPER_OPTIONS=""
|
|
|
|
WRAPPER_INCLIB="Y"
|
|
|
|
for arg
|
|
|
|
do
|
|
|
|
case "$arg" in
|
|
|
|
-c|-E|-S) WRAPPER_INCLIB="N" ;;
|
|
|
|
-static) [ "$WRAPPER_LIBS" != "-lc -lgcc_s -lssp_nonshared -lgcc_eh" ] && WRAPPER_LIBS="-lc -lgcc_s -lssp_nonshared -lgcc_eh" ;;
|
|
|
|
esac
|
|
|
|
done
|
2020-08-29 03:17:39 +00:00
|
|
|
[ "$WRAPPER_INCLIB" = "Y" ] && WRAPPER_OPTIONS="-nodefaultlibs $WRAPPER_LIBDIR -lc++ -lc++abi $WRAPPER_LIBS"
|
2019-12-14 05:07:04 +00:00
|
|
|
|
2020-08-29 03:17:39 +00:00
|
|
|
exec CXX -nostdinc++ -DGCC_HASCLASSVISIBILITY "$WRAPPER_INCLUDEDIR" "$@" $WRAPPER_OPTIONS
|
2019-12-14 05:07:04 +00:00
|
|
|
|