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 1
1
# ########################
2
2
# Remove old binary
3
3
# ########################
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
6
6
fi
7
7
8
8
# ########################
9
9
# Prepare build
10
10
# ########################
11
11
autoreconf -ifv
12
- ./configure CXXFLAGS=' -g -O2 -fPIC'
12
+ ./configure CXXFLAGS=' -m32 - g -O2 -fPIC' CFLAGS= ' -m32 ' LDFLAGS= ' -m32 '
13
13
make clean
14
14
15
15
# ########################
16
16
# Do build
17
17
# ########################
18
18
echo Building...
19
- make > _make.log
19
+ make > _make-32 .log
20
20
21
21
# ########################
22
22
# Check for error
30
30
# ########################
31
31
# Copy binary file
32
32
# ########################
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"
35
36
exit 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