forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcastor-2.1.13.9-fix-arm-m32-option.patch
More file actions
45 lines (42 loc) · 1.04 KB
/
castor-2.1.13.9-fix-arm-m32-option.patch
File metadata and controls
45 lines (42 loc) · 1.04 KB
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
diff --git a/gridftp2/external/Imakefile b/gridftp2/external/Imakefile
index 049e172..dfccf07 100644
--- a/gridftp2/external/Imakefile
+++ b/gridftp2/external/Imakefile
@@ -24,7 +24,9 @@ COMM
COMM @author castor-dev@cern.ch
COMM
-MOPTION=-m32
+ifeq ($(shell uname -m), i386)
+ MOPTION=-m32
+endif
ifeq ($(shell uname -m), x86_64)
MOPTION=-m64
endif
diff --git a/gridftp2/internal/Imakefile b/gridftp2/internal/Imakefile
index 4e1378e..30dbdfd 100644
--- a/gridftp2/internal/Imakefile
+++ b/gridftp2/internal/Imakefile
@@ -24,7 +24,9 @@ COMM
COMM @author castor-dev@cern.ch
COMM
-MOPTION=-m32
+ifeq ($(shell uname -m), i386)
+ MOPTION=-m32
+endif
ifeq ($(shell uname -m), x86_64)
MOPTION=-m64
endif
diff --git a/gridftp2/xroot/Imakefile b/gridftp2/xroot/Imakefile
index d915dcb..29a523d 100644
--- a/gridftp2/xroot/Imakefile
+++ b/gridftp2/xroot/Imakefile
@@ -24,7 +24,9 @@ COMM
COMM @author castor-dev@cern.ch
COMM
-MOPTION=-m32
+ifeq ($(shell uname -m), i386)
+ MOPTION=-m32
+endif
ifeq ($(shell uname -m), x86_64)
MOPTION=-m64
endif