File tree Expand file tree Collapse file tree 5 files changed +51
-593
lines changed Expand file tree Collapse file tree 5 files changed +51
-593
lines changed Original file line number Diff line number Diff line change 11# ########################
22# Remove old binary
33# ########################
4- if [ -e " ml_sockets.so" ]; then
5- rm ml_sockets.so
4+ if [ -e " ./x32/ ml_sockets.so" ]; then
5+ rm ./x32/ ml_sockets.so
66fi
77
88# ########################
99# Prepare build
1010# ########################
1111autoreconf -ifv
12- ./configure CXXFLAGS=' -g -O2 -fPIC'
12+ ./configure CXXFLAGS=' -m32 - g -O2 -fPIC' CFLAGS= ' -m32 ' LDFLAGS= ' -m32 '
1313make clean
1414
1515# ########################
1616# Do build
1717# ########################
1818echo Building...
19- make > _make.log
19+ make > _make-32 .log
2020
2121# ########################
2222# Check for error
3030# ########################
3131# Copy binary file
3232# ########################
33- cp src/.libs/libml_sockets.so ./ml_sockets.so
34- echo " Build completed " ` pwd` " /ml_sockets.so"
33+ mkdir x32
34+ cp src/.libs/libml_sockets.so ./x32/ml_sockets.so
35+ echo " Build completed " ` pwd` " /x32/ml_sockets.so"
3536exit 0
Original file line number Diff line number Diff line change 1+ # ########################
2+ # Remove old binary
3+ # ########################
4+ if [ -e " ./x64/ml_sockets.so" ]; then
5+ rm ./x64/ml_sockets.so
6+ fi
7+
8+ # ########################
9+ # Prepare build
10+ # ########################
11+ autoreconf -ifv
12+ ./configure CXXFLAGS=' -m64 -g -O2 -fPIC' CFLAGS=' -m64' LDFLAGS=' -m64'
13+ make clean
14+
15+ # ########################
16+ # Do build
17+ # ########################
18+ echo Building...
19+ make > _make-64.log
20+
21+ # ########################
22+ # Check for error
23+ # ########################
24+ rc=$?
25+ if [ $rc -ne 0 ]; then
26+ echo " Stopping: make returned error code $rc "
27+ exit 1
28+ fi
29+
30+ # ########################
31+ # Copy binary file
32+ # ########################
33+ mkdir x64
34+ cp src/.libs/libml_sockets.so ./x64/ml_sockets.so
35+ echo " Build completed " ` pwd` " ./x64/ml_sockets.so"
36+ exit 0
You can’t perform that action at this time.
0 commit comments