Compiling newlib and newlib-nano
Hi,
I try to get newlib and newlib nano compiled localy to have the debug information not stripped.
I have mingw as build environnement and this look good for now.
The main problem is that my build doesn't include the function _libc_init_array. This should be in the libc.a file but for now, I could get in.
I'm using the 4.9 2014q4 source file.
here my configure script. (extracted from the source 7.z file)
TARGET=
ROOT=/C/
INSTALLDIR_
INSTALLDIR_
echo Creating build directory...
mkdir newlib.build
echo Entering build directory...
cd newlib.build
export CFLAGS=
# run configure program to configure the build
echo Configuring newlib build...
../gcc-
--target=$TARGET \
--prefix=
--infodir=
--mandir=
--htmldir=
--pdfdir=
--enable-
--enable-
--disable-
--disable-nls
make -j
everything get compiled without error.
When I compile the nano version with this script, I see the _linbc_init_array in the .a file (looked with text editor).
export CFLAGS='-g -Os -ffunction-sections -fdata-sections'
echo Configuring newlib-nano build...
../gcc-
--target=$TARGET \
--prefix=
--disable-
--enable-
--disable-
--disable-
--disable-
--enable-
--disable-
--enable-
--enable-
--enable-
--disable-nls
echo Building newlib-nano...
make -j
Any help will be appreciated !
Regards
Jonathan
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Jonathan Dumaresq
- Solved:
- Last query:
- Last reply: