mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
879e68eafd
Switched to upstream tarballs. Switched to libcxxabi as using libsupc++ is quite wonky. Fixed description. Removed patches. The fixes are cosmetic. Added ssp patch. This one is needed for i386 and powerpc under musl. Compile tested every C++ package in the tree with the exception of several boost packages. There's something broken with boost. Ran tested with gerbera. Signed-off-by: Rosen Penev <rosenp@gmail.com>
20 lines
590 B
Bash
Executable File
20 lines
590 B
Bash
Executable File
#!/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
|
|
[ "$WRAPPER_INCLIB" = "Y" ] && WRAPPER_OPTIONS="-nodefaultlibs $WRAPPER_LIBDIR -lc++ -lc++abi $WRAPPER_LIBS"
|
|
|
|
exec CXX -nostdinc++ -DGCC_HASCLASSVISIBILITY "$WRAPPER_INCLUDEDIR" "$@" $WRAPPER_OPTIONS
|
|
|