From mint-bounce@lists.fishpool.fi Thu Oct 2 04:34:37 2008 Message-Id: <88061D3B-3B26-4CE6-B944-0A9ECDA8EBF0@gmail.com> From: Peter Persson To: mint In-Reply-To: <48E3F8F4.2060106@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: [MiNT] problem with includepath in mintlib Date: Thu, 2 Oct 2008 09:12:45 +0200 References: <48E3F8F4.2060106@gmail.com> X-Mailer: Apple Mail (2.929.2) X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: pep.fishmoose@gmail.com Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: I've encountered this problem a few times too. Usually it works when I expand the macros manually, or change the order of the paths/libs. I was kind of hoping that this problem went away with later versions of GCC (I'm using v2.9x myself).. -- PeP 2 okt 2008 kl. 00.25 skrev Miro Kropacek: > Hi, > > I'm playing with mintlib cross compilation and I again noticed > strange bug which appears at least to me since I tried to cross > compile mintlib for the first time. > > It's the line in checkrules and buildrules: > > -I$(top_srcdir)/mintlib -I$(top_srcdir)/stdlib -I$$(<$(top_srcdir)/ > includepath) > > when I use $(top_srcdir)/includepath with some paths, gcc will > completely ignore it. After closer look I see it just uses '-I' (but > this is only visible in debug output -- on the screen that command > looks right!) instead if -I/and/whatever/was/int/that/file ... funny > thing, when I copy&paste the broken compilation command, compilation > succeeded. > > I tried this: > > -I$(top_srcdir)/mintlib -I$(top_srcdir)/stdlib -I`cat $(top_srcdir)/ > includepath` > > i.e. I did the same, just used another syntax -- and it works. My > question is -- what's wrong here? It seems like some macro-expansion > problem but I wasn't able to catch it. > > -- > MiKRO / Mystic Bytes > http://mikro.atari.org > > >