|
|
Choosing A Webhost: |
RE: Static Linked on Linux and Win32: msg#00182apache.apr.devel
Hooray! I got it to statically compile on Unix using the following Ant file: # <project name="iGlanceServer" default="compile"> # <target name="compile"> # <exec executable="g++"> # <arg value="-oiglanced"/> # <arg value="-I./unixlibs/apr-1/include/apr-1"/> # <arg file="main.cpp"/> # <arg file="/mnt/hgfs/VMShared/APRtest/unixlibs/apr-1/lib/libapr-1.a"/> # <arg value="-lpthread"/> # </exec> # </target> # </project> However, the executable is huge -- like 600KB. I thought the linker would throw away everything that the application doesn't use? Or did my "fix" mean including the entire library? -david
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Static Linked on Linux and Win32, David Barrett |
|---|---|
| Next by Date: | Re: cvs commit: apr/build jlibtool.c, jean-frederic clere |
| Previous by Thread: | Static Linked on Linux and Win32, David Barrett |
| Next by Thread: | RE: Static Linked on Linux and Win32, David Barrett |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |