blob: 9a2df0d67f5670c5e43fb06f9b860147cc110bc1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
--- make.sh.orig 2016-09-08 07:44:31 UTC
+++ make.sh
@@ -1,55 +1,13 @@
-tmp_src_filename=fast_check_bits.c
-cat <<EOF > $tmp_src_filename
-#include <stdio.h>
-#include <unistd.h>
-#include <fcntl.h>
-int main()
-{
- printf("%d\n", (int)sizeof(void*));
- printf("%d\n", (int)sizeof(off_t));
- return 0;
-}
-EOF
-
-gcc -D_FILE_OFFSET_BITS=64 -o a.out $tmp_src_filename
-output=`./a.out`
-
-if [ -f /bin/expr ]; then
- EXPR=/bin/expr
-else
- EXPR=/usr/bin/expr
-fi
-
-count=0
-int_bytes=4
-off_bytes=8
-LIB_VERSION=lib64
-
-for col in $output; do
- if [ $count -eq 0 ]; then
- int_bytes=$col
- else
- off_bytes=$col
- fi
-
- count=`$EXPR $count + 1`
-done
-
-/bin/rm -f a.out $tmp_src_filename
-if [ "$int_bytes" -eq 8 ]; then
+if [ "$(/usr/bin/uname)" = "amd64" ]; then
OS_BITS=64
- LIB_VERSION=lib64
-else
- OS_BITS=32
- LIB_VERSION=lib
-fi
-
-if [ "$off_bytes" -eq 8 ]; then
OFF_BITS=64
else
+ OS_BITS=32
OFF_BITS=32
fi
+LIB_VERSION=lib
+
DEBUG_FLAG=0
CFLAGS='-Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE'
|