Ignore:
Timestamp:
2013-01-10T16:27:16+13:00 (11 years ago)
Author:
davidb
Message:

Changes necessary to support cross-compilation using mingw under Linux for Windows native binaries. crossOS environment variable used to signal that this is a Greenstone being cross-compiles. Other changes focus on control of compile flags to ensure the correct dll/so files with the right naming convensions are produced

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/packages/javagdbm/configure.in

    r25493 r26672  
    195195# set defaults
    196196JNIINC=""
     197JNIPREFIX="lib"
    197198JNISUFFIX="so"
    198 JNIFLAGS="-shared"
     199JNICFLAGS=""
     200JNILDFLAGS="-shared"
    199201
    200202if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
     
    202204  JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
    203205  JNISUFFIX="jnilib"
    204   JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
     206  JNILDFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
    205207fi
    206208if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
     
    210212if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
    211213  AC_MSG_RESULT(Linux)
    212   JNIINC="-I\$(JAVA_HOME)/include/linux "
     214  JNIINC="-I\$(JAVA_HOME)/include/linux -I\$(JAVA_HOME)/in5Aclude "
     215fi
     216
     217if test "x$crossOS" != "x" ; then
     218  if test "$crossOS" = "windows" ; then
     219    JNIINC="-I../java-windows-include/win32 -I../java-windows-include "
     220    JNICFLAGS="-Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at"
     221    JNIPREFIX=""
     222    JNISUFFIX="dll"
     223  fi
    213224fi
    214225
    215226AC_SUBST(JNIINC)
     227AC_SUBST(JNIPREFIX)
    216228AC_SUBST(JNISUFFIX)
    217 AC_SUBST(JNIFLAGS)
     229AC_SUBST(JNICFLAGS)
     230AC_SUBST(JNILDFLAGS)
    218231
    219232# write the output
Note: See TracChangeset for help on using the changeset viewer.