Fixed some build issues with RedHat
This commit is contained in:
2
README
2
README
@@ -58,6 +58,8 @@ The main Python interface only contains 6 functions:
|
||||
|
||||
Quick Start:
|
||||
|
||||
Standard stuff to install: Python 2.7 (including devel), argparse
|
||||
|
||||
If you do not have Jerasure installed. Install it from the unofficial GitHub
|
||||
repo linked from here (setup.py assumes it will be in /usr/local):
|
||||
|
||||
|
||||
6
setup.py
6
setup.py
@@ -11,11 +11,11 @@ module = Extension('pyeclib_c',
|
||||
'src/c/xor_codes',
|
||||
'/usr/local/include/jerasure'],
|
||||
library_dirs = ['/usr/lib', '/usr/local/lib'],
|
||||
libraries = ['python2.7', 'Jerasure'],
|
||||
libraries = ['python2.6', 'Jerasure'],
|
||||
# The extra arguments are for debugging
|
||||
#extra_compile_args = ['-g', '-O0', '-msse3'],
|
||||
extra_compile_args = ['-msse3'],
|
||||
extra_link_args=['-static'],
|
||||
extra_compile_args = ['-msse3', '-fPIC'],
|
||||
extra_link_args=['-Bstatic'],
|
||||
sources = ['src/c/pyeclib_c/pyeclib_c.c', 'src/c/xor_codes/xor_code.c', 'src/c/xor_codes/xor_hd_code.c'])
|
||||
|
||||
setup (name = 'PyECLib',
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
CFLAGS=-g
|
||||
CFLAGS=-g -fPIC
|
||||
GCC=gcc
|
||||
INCLUDE_DIRS=-I./ -I../include -I/usr/local/include/jerasure
|
||||
LIB_DIR=-L/usr/local/lib
|
||||
LIBS=-lJerasure
|
||||
|
||||
all: alg_sig_test
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
CFLAGS=-O3 -msse3
|
||||
CFLAGS=-O3 -msse3 -fPIC
|
||||
GCC=gcc
|
||||
INCLUDE_DIRS=-I./ -I../include
|
||||
|
||||
|
||||
Reference in New Issue
Block a user