Fixed some build issues with RedHat

This commit is contained in:
Kevin Greenan
2013-10-04 16:45:51 -07:00
parent b6bdfbbfbf
commit 6c99492817
4 changed files with 8 additions and 5 deletions

2
README
View File

@@ -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):

View File

@@ -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',

View File

@@ -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

View File

@@ -1,4 +1,4 @@
CFLAGS=-O3 -msse3
CFLAGS=-O3 -msse3 -fPIC
GCC=gcc
INCLUDE_DIRS=-I./ -I../include