This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Trying to embed gnu.xml.dom.DomDocumentBuilderFactory


Mohsen Saboorian wrote:
http://gcc.gnu.org/wiki/Statically%20linking%20libgcj

My GCC version is 4.1.2 (2006-9-28 prerelease, Ubuntu 4.1.1.14ubuntu7), not 4.2 but still I can use -static-libgcj option.

You should look at the documentation that comes with your compiler. IIRC Red Hat and Debian are using a hybrid mash-up of code from several different versions.

If you were using a straight FSF release the -static-libgcj option is not available until 4.2. If you have the -static-libgcj option available, it is far preferable to use it rather than manually specifying a large string of libraries.

As a side note, I am not sure why you want to statically link. Usually it only makes sense for small embedded environments.

David Daney


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]