Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!nx02.iad01.newshosting.com!newshosting.com!novia!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.iecc.com!nerds-end From: Harald Gustafsson Newsgroups: comp.compilers Subject: Re: combining c-code files into one c-code file Date: Wed, 18 Apr 2012 02:01:02 -0700 (PDT) Organization: Compilers Central Lines: 13 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <12-04-020@comp.compilers> References: <12-04-005@comp.compilers> NNTP-Posting-Host: news.iecc.com X-Trace: leila.iecc.com 1334753969 41079 64.57.183.58 (18 Apr 2012 12:59:29 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Wed, 18 Apr 2012 12:59:29 +0000 (UTC) Keywords: C, tools Posted-Date: 18 Apr 2012 08:59:29 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:563 Just wanted to inform you that I got another off-list tip based on my question on this list to use CIL from Berkley. http://sourceforge.net/projects/cil/ It has a merge function that works great, just redefining CC, LD and AR in makefile. I also managed with the CIL-lists help to make a visitor to make all global declarations static which I needed for Renderscript. So far I have managed to merge the libc string operations and a malloc implementation, as well as making libx264 compile inside renderscript (have not had a chance to test it yet). Thanks, Harald