Changeset 10958:01908fa46f23 in orange


Ignore:
Timestamp:
07/30/12 10:59:59 (21 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Added '-fPIC' flag to buildC45 script for linux.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/orng/buildC45.py

    r9671 r10958  
    3030 
    3131# Compile ensemble.c and prepare dynamic library 
     32 
     33import Orange 
    3234 
    3335import orange 
     
    6971     
    7072 
    71 elif sys.platform == "linux2": 
    72     ret = os.system('gcc ensemble.c -o %s/c45.so -shared -lstdc++' % orangedir) 
     73elif sys.platform.startswith("linux"): 
     74    ret = os.system('gcc ensemble.c -o %s/c45.so -shared -lstdc++ -fPIC' % orangedir) 
    7375    if ret: 
    7476        print "compiler/linker exited abnormally" 
Note: See TracChangeset for help on using the changeset viewer.