I'm running Ubuntu 20.04. I would like to build an emacs binary for general usage (no debug symbols) and another emacs binary (when something goes wrong). The build is pretty straight-forward, but I don't know how to have both debug and non-debug binaries exist at the same time.
Is it enough to
./autogen.sh && ./configure -ggdb3 -O0 && make - and then copy the resulting
src/emacs debuggable binary to a temporary directory.
./autogen.sh && ./configure && make && make install
which will create (in my case) a
Finally, can I simply copy the binary I configured with debug flags to /usr/local/bin/emacs-28.0.50-debug and call that file when needed?
Or - do I have to included other emacs-related files when I debug emacs?