g++-uc+std 774 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env bash
  2. WRAPPER_LIBDIR="${WRAPPER_LIBDIR:=-L${STAGING_DIR:-/srv/openwrt/ar71xx/build/staging_dir/target-mips_34kc_musl-1.1.15}/lib/}"
  3. WRAPPER_OPTIONS=""
  4. WRAPPER_LIBS="-lc -lgcc_s -lssp_nonshared "
  5. WRAPPER_INCLIB="Y"
  6. while [ -n "$1" ]
  7. do
  8. WRAPPER_OPTIONS="$WRAPPER_OPTIONS $1"
  9. if [ "$1" = "-c" -o "$1" = "-E" -o "$1" = "-S" -o "$1" = "-MF" ]
  10. then
  11. WRAPPER_INCLIB="N"
  12. fi
  13. if [ "$1" = "-static" ]
  14. then
  15. WRAPPER_LIBS="-lc -lgcc_s -lssp_nonshared -lgcc_eh"
  16. fi
  17. shift
  18. done
  19. if [ "$WRAPPER_INCLIB" = "Y" ]
  20. then
  21. WRAPPER_OPTIONS="$WRAPPER_OPTIONS -nodefaultlibs $WRAPPER_LIBDIR -Wl,-Bdynamic,-luClibc++,-Bstatic,-lstdc++,-Bdynamic $WRAPPER_LIBS"
  22. fi
  23. exec mips-openwrt-linux-musl-g++ -fno-builtin -DGCC_HASCLASSVISIBILITY $WRAPPER_INCLUDEDIR $WRAPPER_OPTIONS