[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libextractor] Re: libextractor and Solaris 10
From: |
Michał Kowalczuk |
Subject: |
Re: [libextractor] Re: libextractor and Solaris 10 |
Date: |
Wed, 05 Apr 2006 13:58:59 +0200 |
User-agent: |
Mail/News 1.5 (X11/20060122) |
Christian Grothoff wrote:
>> My workaround for now is to declare CXX="g++ -m64"
>
> I think we can do better. Changing the CFLAGS line in Makefile.am to
>
> CXXFLAGS = `echo "$(CFLAGS) -O0" | sed -e "s/-O?//"`
>
> should do the trick -- disable optimizations while keeping the other flags
> (in SVN 2611).
Shouldn't it be:
CXXFLAGS = `echo "$(CXXFLAGS) -O0" | sed -e "s/-O.//"`
^^ ^
But make will find a loop when expanding macro.
Also there will be a problem if someone will declare:
CXXFLAGS="-O2 -foo -O3 -bar -O3 -quux"
Maybe something like this:
CXXFLAGS = "`echo "$(CXXFLAGS)" | sed -e "s/-O.//g"` -O0"
would be better solution?
--
greetings,
Michał Kowalczuk
Wirtualna Polska S.A.