From mint-bounce@lists.fishpool.fi Wed Oct 1 18:37:00 2008 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :organization:user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=B/ZfTAWVK73UAa5atE+JLRj0PXsIMKypL9A0LF2Fjdw=; b=M67EU6LcLr7HPtKBg4YyWsRQrjMWpsaDf6S2trvoOkRYGoutRkrgcohha+aNpk9Q4h Zfct4/v6pddSRv1cp7f8t+DUlp8KyXzAcnbnpv/YhY+11fGyxlDgkGFpP+NGvpkvtMjO xJmYYFt2sLV7XGimodLINgS/ngg18y/Yu5Lxo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:organization:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; b=oBTXfPoBqA0rgJw9hPARhjhMLwrMmqG81UBPqTFrgxtXDCNw47IMKctrxznKFbjTK2 2KUc3UQNggbIKoVVGez8g5qw90lsIGw4qxS6avpj9BDzg+5ltw1tuYS0E07MRa5DYxS0 saEDkEaOVTmURp4y1XXakywdp89i2OQfrdmZc= Message-ID: <48E3F8F4.2060106@gmail.com> Date: Thu, 02 Oct 2008 00:25:56 +0200 From: Miro Kropacek Organization: Mystic Bytes User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: mint Subject: [MiNT] problem with includepath in mintlib Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: miro.kropacek@gmail.com Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: 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