From mboxrd@z Thu Jan 1 00:00:00 1970 From: Per Bothner To: rhug-rhats@sources.redhat.com Subject: rhug libtool problem Date: Thu, 18 Oct 2001 14:39:00 -0000 Message-id: <200110182134.f9ILYgJ07799@eureka.bothner.com> X-SW-Source: 2001-10/msg00033.html I'm confused how people are able to compile rhug without getting these kinds of errors: make[2]: Entering directory `/home/bothner/Java/rhug/pgsql-jdbc' source='upstream/org/postgresql/Field.java' object='upstream/org/postgresql/Field.lo' libtool=yes \ depfile='.deps/upstream/org/postgresql/Field.Plo' tmpdepfile='.deps/upstream/org/postgresql/Field.TPlo' \ depmode=gcc3 /bin/sh ../depcomp \ /bin/sh ../libtool --mode=compile gcj --encoding=UTF-8 -fassume-compiled -fCLASSPATH=upstream -O2 -c -o upstream/org/postgresql/Field.lo `test -f upstream/org/postgresql/Field.java || echo './'`upstream/org/postgresql/Field.java rm -f upstream/org/postgresql/.libs/Field.lo gcj --encoding=UTF-8 -fassume-compiled -fCLASSPATH=upstream -O2 -c upstream/org/postgresql/Field.java -MT upstream/org/postgresql/Field.lo -MD -MP -MF .deps/upstream/org/postgresql/Field.TPlo -fPIC -DPIC -o upstream/org/postgresql/Field.ogcj: can't specify `-D' without `--main' The fix presumably is to require the "multi-language" libtool, and add --tag=GCJ to LTGCJCOMPILE in the various Makefiles. My confusion is that people seem to be managing without it. Are they just building statically? --Per Bothner per@bothner.com http://www.bothner.com/per/