1 2 3 4 5 6 7 8 9 10 11 12 13
# gold linker runs out of memory on 32-bit eval "$( declare -f build | \ sed ' s/cmake -B build/cmake -B build -DUSE_LD_GOLD=OFF / ' declare -f build | \ sed ' 3 i LDFLAGS+=" -Wl,--no-keep-memory" 3 i CFLAGS+=" -g1" 3 i CXXFLAGS+=" -g1" ' )"