From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8ff8a403110109d8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-04 12:16:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!not-for-mail From: "Per Dalgas Jakobsen" Subject: Re: Compilation induced constants in Ada code? Date: Sat, 04 Jan 2003 21:22:13 +0100 User-Agent: Pan/0.13.2 (I wwwondeling why alla boppah ferra pushing in?) Message-ID: Newsgroups: comp.lang.ada References: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Organization: TDC Internet NNTP-Posting-Host: 193.89.241.47 X-Trace: 1041711388 dread16.news.tele.dk 129 193.89.241.47 X-Complaints-To: abuse@post.tele.dk Xref: archiver1.google.com comp.lang.ada:32542 Date: 2003-01-04T21:22:13+01:00 List-Id: On Sat, 04 Jan 2003 19:50:53 +0000, Waldek Hebisch wrote: >> An obvious one: Patch make.adb to change the name just before compilation. > > A slight variation, but (IMHO) much cleaner: make a sparate package > which exports needed constants, keep a template with the souces but > generate correct version in object directory. Yep, I came to that conclussion too - In fact I think I will try to extract all the tool names to such a package, not just gcc. In that case, renaming tools will not be that hard to do, if needed. > However, one have to do more (mostly in makefiles & configure) to > have things play really nicely: the GNU standard is that utilites > should still work even if given different name. So one should really > install gnat tools into gcc instal direstory and the installed programs > should just invoke the real ones in privete directory. Easy to do > with symlinks or shell scrips on Unix, but limits portablity to > non Unix systems. That would be nice, but I'm not too keen to start fooling around to much with the gcc build-scripts - Not just yet. Call me a wimp ;-) > And most work will probably go into makefiles and configure scripts > --- writing them is easy, but debugging is very time-consuming. No kidding ;-))) I have just had +3 days of very recent experience there :-))) Thanks :) Best regards Per