Changeset 809 for trunk


Ignore:
Timestamp:
Jan 23, 2017, 9:44:49 AM (8 years ago)
Author:
djay
Message:

Add the java-rpath to the configure options.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/install/installation.rst

    r806 r809  
    343343file.
    344344
     345.. note::
     346   You can use the `--with-java-rpath` option to produce a binary
     347   aware of the libjvm location.
     348
    345349
    346350.. note::
  • trunk/zoo-project/zoo-kernel/configure.ac

    r805 r809  
    595595        [JDKHOME="$withval"; JAVA_ENABLED="-DUSE_JAVA"], [JAVA_ENABLED=""])
    596596
     597AC_ARG_WITH([java-rpath],
     598        [AS_HELP_STRING([--with-java-rpath=yes], [To set rpath for java support, disabled by default])],
     599        [JAVA_RPATH="$withval"], [JAVA_RPATH=""])
     600
    597601if test -z "$JAVA_ENABLED"
    598602then
     
    621625                        JAVA_LDFLAGS="-L$JDKHOME/jre/lib/i386/server/ -ljvm -lpthread"
    622626                        JAVA_CPPFLAGS="-I$JDKHOME/include -I$JDKHOME/include/linux"
     627                        if test x$JAVA_RPATH = "xyes"; then
     628                           JAVA_LDFLAGS="$JAVA_LDFLAGS -Wl,-rpath,$JDKHOME/jre/lib/i386/server/"
     629                        fi
    623630                else
    624631                        if test -d "$JDKHOME/jre/lib/amd64"; then
    625632                           JAVA_LDFLAGS="-L$JDKHOME/jre/lib/amd64/server/ -ljvm -lpthread"
    626633                           JAVA_CPPFLAGS="-I$JDKHOME/include -I$JDKHOME/include/linux"
     634                           if test x$JAVA_RPATH = "xyes"; then
     635                              JAVA_LDFLAGS="$JAVA_LDFLAGS -Wl,-rpath,$JDKHOME/jre/lib/amd64/server/"
     636                           fi
    627637                        else
    628638                           JAVA_LDFLAGS="-L$JDKHOME/jre/lib/server/ -ljvm -lpthread"
    629639                           JAVA_CPPFLAGS="-I$JDKHOME/include/ -I$JDKHOME/include/darwin"
     640                           if test x$JAVA_RPATH = "xyes"; then
     641                              JAVA_LDFLAGS="$JAVA_LDFLAGS -Wl,-rpath,$JDKHOME/jre/lib/server/"
     642                           fi
    630643                        fi
    631644                fi
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png