This is the mail archive of the java-patches@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: PATCH: PR libjava/32078: Update libtool in classpath


On Wed, 2007-05-30 at 10:37 -0700, H. J. Lu wrote:
> On Wed, May 30, 2007 at 11:01:00AM -0600, Tom Tromey wrote:
> > >>>>> "H.J." == H J Lu <hjl@lucon.org> writes:
> > 
> > H.J.> This patch + my libtool.m4 hack work for me on Linux/x86-64 with
> > H.J.> "make", "make check" and "make install".
> > 
> > I suppose someone else will have to review the libtool.m4 patch.
> > I'd appreciate it if this were done quickly.  libjava hasn't built for
> > several days now.
> > 
> > Your change in classpath is ok.  Thank you.
> 
> My change in classpath won't work without my libtool.m4 change. I
> will check in my libtool.m4 change to enable libjava build again. We
> can always back it out later when a better solution is found.

I don't see the need to fork libtool.m4, if you can't get aclocal to
work (I couldn't either when I tried just now) just put this in
configure.ac ( or in a separate file and m4_include it):

m4_pushdef([_LT_LANG_GCJ_CONFIG],
[
# Source file extension for Java test sources.
ac_ext=c

# Object file extension for compiled Java test sources.
objext=o
_LT_TAGVAR(objext, $1)=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="int some_java_variable = 0;"
# Code to be used in simple link tests
lt_simple_link_test_code='int main(){return(0);}'

# ltmain only uses $CC for tagged configurations so make sure $CC is
set.
_LT_TAG_COMPILER

# save warnings/boilerplate of simple test code
_LT_COMPILER_BOILERPLATE
_LT_LINKER_BOILERPLATE

# Allow CC to be a program name with arguments.
compiler=$CC
_LT_TAGVAR(compiler, $1)=$CC
_LT_CC_BASENAME([$compiler])

# GCJ did not exist at the time GCC didn't implicitly link libc in.
_LT_TAGVAR(archive_cmds_need_lc, $1)=no

_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds

## CAVEAT EMPTOR:
## There is no encapsulation within the following macros, do not change
## the running order or otherwise move them around unless you know
exactly
## what you are doing...
if test -n "$compiler"; then
  _LT_COMPILER_NO_RTTI($1)
  _LT_COMPILER_PIC($1)
  _LT_COMPILER_C_O($1)
  _LT_COMPILER_FILE_LOCKS($1)
  _LT_LINKER_SHLIBS($1)
  _LT_SYS_DYNAMIC_LINKER($1)
  _LT_LINKER_HARDCODE_LIBPATH($1)

  _LT_CONFIG($1)
fi

AC_LANG_RESTORE
])# _LT_LANG_GCJ_CONFIG



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