diff options
author | Khem Raj <kraj@mvista.com> | 2008-12-18 08:16:32 +0000 |
---|---|---|
committer | Khem Raj <kraj@mvista.com> | 2008-12-18 08:16:32 +0000 |
commit | 2960c7d383a900f80bccdf36e69bc16d1161ced7 (patch) | |
tree | 63edac9cbb6672ef25aa3372bb7785eba62eaf65 | |
parent | df9e018c63ded151da9a7d877f47774335c94a38 (diff) | |
download | uClibc-alpine-2960c7d383a900f80bccdf36e69bc16d1161ced7.tar.bz2 uClibc-alpine-2960c7d383a900f80bccdf36e69bc16d1161ced7.tar.xz |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Use -O2 for optlevel. -Os doesnt go well with arm and gcc 4.3.x
because -Os enables -fearly-inlining as a result some of libgcc
functions which call _div0 get emitted. div0 needs raise () and
it comes from libc so a catch 22. We avoid this by avoiding division
functions as much as we can. So either we can use -Os -fno-early-inlining
or use other opt level like O1 or O2. I chose O2.
-rw-r--r-- | ldso/ldso/Makefile.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/ldso/Makefile.in b/ldso/ldso/Makefile.in index e39ef84d5..6d126cb2b 100644 --- a/ldso/ldso/Makefile.in +++ b/ldso/ldso/Makefile.in @@ -17,7 +17,7 @@ ifeq ($(DODEBUG),y) # Not really much point in including debugging info, since gdb # can't really debug ldso, since gdb requires help from ldso to # debug things.... -CFLAGS-ldso += -Os -g +CFLAGS-ldso += -O2 -g endif CFLAGS-ldso/ldso/$(TARGET_ARCH)/ := $(CFLAGS-ldso) |