This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Problem with --enable-target-optspace
- From: Artur Lipowski <LAL at pro dot onet dot pl>
- To: newlib at sourceware dot org
- Date: Sun, 29 Jul 2007 13:38:49 +0200
- Subject: Problem with --enable-target-optspace
Hi,
When I specify mentioned option then there is no possibility to use CFLAGS
environment variable (to supply some tailoring definitions like e.g
-DREENTRANT_SYSCALLS_PROVIDED).
I found that when --enable-target-optspace option is used then there is
generated Makefile with following directives (it is taken from the file
newlib/mt-ospace):
# Build libraries optimizing for space, not speed.
CFLAGS_FOR_TARGET = -g -Os
CXXFLAGS_FOR_TARGET = -g -Os
For me it seems that there is missing $(CFLAGS) entry - it should be like that:
CFLAGS_FOR_TARGET = -g -Os $(CFLAGS)
Is it expected behaviour or I am doing something stupid?
BTW> The same behaviour for the official version 1.15 and for the newest CVS
snapshot. Full command line command is:
../newlib/configure --target=arm-elf --prefix=/usr/local/arm --enable-interwork
--enable-multilib --enable-target-optspace --disable-nls --with-gnu-as
--with-gnu-ld --disable-newlib-supplied-syscalls --enable-newlib-elix-level=1
--disable-newlib-io-float --disable-newlib-atexit-dynamic-alloc
--enable-newlib-reent-small
Regards,
--
Artur Lipowski