Skip to content

Instantly share code, notes, and snippets.

@fikovnik
Created October 11, 2021 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fikovnik/b17e9d76023db27f7e2acaeb6a818e10 to your computer and use it in GitHub Desktop.
Save fikovnik/b17e9d76023db27f7e2acaeb6a818e10 to your computer and use it in GitHub Desktop.
Build R for debugging
#!/bin/sh
export CXXFLAGS="-O0 -ggdb3"
export CPPFLAGS="-O0 -ggdb3"
export CFLAGS="-O0 -ggdb3"
export R_KEEP_PKG_SOURCE=yes
export CXX="g++"
./configure --with-blas --with-lapack --without-ICU --with-x \
--with-tcltk --without-aqua --with-recommended-packages \
--without-internal-tzcode --with-included-gettext \
--disable-byte-compiled-packages &&
make clean &&
make -j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment