Changeset 9d3acf9


Ignore:
Timestamp:
Jul 30, 2011 11:25:14 PM (9 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
3eafe4c
Parents:
18ee239
Message:

Add Linux PPC support

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/util/NativeBigInteger.java

    r18ee239 r9d3acf9  
    148148     */
    149149    private final static String JBIGI_OPTIMIZATION_ARM        = "arm";
     150    private final static String JBIGI_OPTIMIZATION_PPC        = "ppc";
    150151
    151152    /**
     
    178179    private static final boolean _isArm = System.getProperty("os.arch").startsWith("arm");
    179180
     181    private static final boolean _isPPC = System.getProperty("os.arch").contains("ppc");
     182
    180183    /* libjbigi.so vs jbigi.dll */
    181184    private static final String _libPrefix = (_isWin || _isOS2 ? "" : "lib");
     
    185188   
    186189    static {
    187         if (_isX86) // Don't try to resolve CPU type on PPC and other non x86 hardware
     190        if (_isX86) // Don't try to resolve CPU type on non x86 hardware
    188191            sCPUType = resolveCPUType();
    189192        else if (_isArm)
    190193            sCPUType = JBIGI_OPTIMIZATION_ARM;
     194        else if (_isPPC && !_isMac)
     195            sCPUType = JBIGI_OPTIMIZATION_PPC;
    191196        else
    192197            sCPUType = null;
     
    691696        // Add libjbigi-xxx-none.so
    692697        // Note that libjbigi-osx-none.jnilib is a 'fat binary' with both PPC and x86-32
    693         if (!_isArm)
     698        if ((!_isArm)  || (!_isPPC && !_isMac))
    694699            rv.add(getResourceName(false));
    695700        return rv;
  • installer/resources/postinstall.sh

    r18ee239 r9d3acf9  
    4747            wrapperpath="./lib/wrapper/linux-armv5"
    4848            cp ${wrapperpath}/libwrapper.so ./lib/
     49        elif [ `echo $OS_ARCH |grep ppc` ]; then
     50            wrapperpath="./lib/wrapper/linux-ppc"
     51            cp ${wrapperpath}/libwrapper.so ./lib/
    4952        elif [ "X$X86_64" = "X" ]; then
    5053            wrapperpath="./lib/wrapper/linux"
Note: See TracChangeset for help on using the changeset viewer.