Skip to content

--disable-debug-info enables debug information #1646

Open
@jefftrull

Description

@jefftrull

I am building toolchains for use in Docker containers and I find that the --disable-debug-info configure option does nothing - debug info is always present in the toolchain binaries, causing my container images to be very large. For example:

/configure --disable-gdb --disable-debug-info --with-arch=rv32imc \
--with-abi=ilp32 --with-cmodel=medlow --prefix=`pwd`/installed
make
...
file installed/bin/*

shows all the binaries as with debug_info, not stripped.

I can see that --enable-debug-info does add -g to the compile flags, but it seems like it must be there by default in gcc (at least) and what we need is some way of turning that off.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions