File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,11 @@ dlltool --input-def ${DLL_BASENAME}.def \
136
136
# Replace the DLL name with the generated name.
137
137
sed -i " s/ -lopenblas.*$/ -l${DLL_BASENAME: 3} /g" pkgconfig/openblas* .pc
138
138
mv pkgconfig/* .pc pkgconfig/scipy-openblas.pc
139
+ if [ " $if_bits " == " 64" ]; then
140
+ sed -e " s/^Cflags.*/\0 -DBLAS_SYMBOL_PREFIX=scipy_ -DBLAS_SYMBOL_SUFFIX=64_/" -i pkgconfig/scipy-openblas.pc
141
+ else
142
+ sed -e " s/^Cflags.*/\0 -DBLAS_SYMBOL_PREFIX=scipy_/" -i pkgconfig/scipy-openblas.pc
143
+ fi
139
144
popd
140
145
# Build template site.cfg for using this build
141
146
cat > ${build_bits} /site.cfg.template << EOF
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ function do_build_lib {
178
178
else
179
179
local version=$( cd OpenBLAS && git describe --tags --abbrev=8)
180
180
fi
181
+ mv $BUILD_PREFIX /lib/pkgconfig/openblas* .pc $BUILD_PREFIX /lib/pkgconfig/scipy-openblas.pc
181
182
local plat_tag=$( get_plat_tag $plat )
182
183
local suff=" "
183
184
[ -n " $suffix " ] && suff=" -$suffix "
@@ -186,11 +187,11 @@ function do_build_lib {
186
187
# do it ourselves
187
188
static_libname=$( basename ` find OpenBLAS -maxdepth 1 -type f -name ' *.a' \! -name ' *.dll.a' ` )
188
189
renamed_libname=$( basename ` find OpenBLAS -maxdepth 1 -type f -name ' *.renamed' ` )
189
- # set -x # echo commands
190
190
cp -f " OpenBLAS/${renamed_libname} " " $BUILD_PREFIX /lib/${static_libname} "
191
- # set +x
191
+ sed -e " s/^Cflags.*/\0 -DBLAS_SYMBOL_PREFIX=scipy_ -DBLAS_SYMBOL_SUFFIX=64_/" -i.bak $BUILD_PREFIX /lib/pkgconfig/scipy-openblas.pc
192
+ else
193
+ sed -e " s/^Cflags.*/\0 -DBLAS_SYMBOL_PREFIX=scipy_/" -i.bak $BUILD_PREFIX /lib/pkgconfig/scipy-openblas.pc
192
194
fi
193
- mv $BUILD_PREFIX /lib/pkgconfig/openblas* .pc $BUILD_PREFIX /lib/pkgconfig/scipy-openblas.pc
194
195
195
196
local out_name=" openblas${symbolsuffix} -${version} -${plat_tag}${suff} .tar.gz"
196
197
tar zcvf libs/$out_name \
You can’t perform that action at this time.
0 commit comments