libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

address@hidden: libtool versus gcj]


From: Dr. Franz Fehringer
Subject: address@hidden: libtool versus gcj]
Date: Thu, 11 Mar 2004 07:44:14 +0100
User-agent: Mutt/1.3.22.1i

Second try, first one did not get through.

----- Forwarded message from "Dr. Franz Fehringer" <address@hidden> -----

Date: Mon, 8 Mar 2004 14:34:34 +0100
From: "Dr. Franz Fehringer" <address@hidden>
To: address@hidden
Subject: libtool versus gcj
User-Agent: Mutt/1.3.22.1i

Hello,

I observe the following problem with libtool 1.5.2 and with gcc/g++/gcj 3.3.3
installed:
The gcj related tests all fail

checking if gcj PIC flag -fPIC works... no
checking if gcj supports -c -o file.o... no

On further inspection it turns out, that gcj is apparently invoked as
$GCJ $CFLAGS $CPPFLAGS
instead of
$GCJ $GCJFLAGS
The output in config.log reads

gcj -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT 
-I/usr/local/include/ncurses -I/usr/local/ActivePython-2.3/include -pipe 
-pthread -O3 -fomit-frame-pointer -ffast-math -march=k6 -m3dnow -mmmx 
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/usr/local/include/ncurses 
-I/usr/local/ActivePython-2.3/include -fPIC conftest.java
gcj: can't specify `-D' without `--main'

My environment is

export PATH=/usr/local/gcc/bin:$PATH
export MANPATH=/usr/local/gcc/man:$MANPATH
export INFOPATH=/usr/local/gcc/info:$INFOPATH
export INFODIR=/usr/local/gcc/info:$INFODIR
export CC=gcc
export CXX=g++
export GCJ=gcj
export CPPFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT 
-I/usr/local/include/ncurses -I/usr/local/ActivePython-2.3/include"
export PICFLAGS="-fPIC -DPIC"
export FLAGS="$CPPFLAGS -pipe -pthread -O3 -fomit-frame-pointer -ffast-math 
-march=k6 -m3dnow -mmmx"
export CFLAGS="$FLAGS"
export LIBCFLAGS="$CFLAGS $PICFLAGS"
export CXXFLAGS=$FLAGS
export LIBCXXFLAGS="$CXXFLAGS $PICFLAGS"
export GCJFLAGS="-pipe -pthread -Wp,-D_REENTRANT -Wp,-D_GNU_SOURCE 
-Wp,-D_FILE_OFFSET_BITS=64 -O2 -fexpensive-optimizations -ffast-math -march=k6 
-m3dnow -mmmx"
export LDFLAGS="-O3 -Wl,-O3 -L/usr/local/lib -L/usr/X11R6/lib -lrt -lpthread 
-lutil"
export LD_RUN_PATH=/usr/local/lib
export AR_FLAGS=crs

This is on a SuSE 7.3 (AMD 32bit) Installation.

One minor glitch:

checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
.
.
.
appending configuration tag "F77" to libtool

Shouldn't the second line/test omitted, if there is no Fortran compiler found?
And why tag "F77" without Fortran compiler?

Greetings

Franz


----- End forwarded message -----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]