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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,807ea75fdd8baa41 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: Some questions on packaging Ada code Date: Wed, 09 Mar 2011 02:44:41 -0800 Organization: Aioe.org NNTP Server Message-ID: References: <4d76c78f$0$22138$742ec2ed@news.sonic.net> Reply-To: nma@12000.org NNTP-Posting-Host: tUYQ4Ty9mMw9Pdc8TJRFQA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news1.google.com comp.lang.ada:17982 Date: 2011-03-09T02:44:41-08:00 List-Id: On 3/9/2011 2:33 AM, localhost@example.org wrote: > > I realize that which is why I asked can I generate a standalone Windows > executable from Linux easily enough or should I build the source on > Windows. I don't know what steps are involved in cross compiling or if its a > good idea. Lets back up a little here to make sure all is clear: (1) I thought you just wanted to build a Linux executable on Linux. (2) If you wanted to build a windows executable on Linux, then that is a different matter. I was answering based on (1) not (2). To link to a static library instead of a shared one, I normally just link to the .a version of the library instead of the .so version. This is a general statement, there might be specific things you need to do relating to compiler options and such depending on which compiler you are using. If you want to build a windows static executable, then I would do everything on windows not on Linux. Why make life harder than it needs to. --Nasser