File: 0002-added-DEB_CROSS_NO_BIARCH-option-to-disable-biarch-s.patch

package info (click to toggle)
cross-gcc 249
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 892 kB
  • sloc: sh: 564; makefile: 196
file content (44 lines) | stat: -rw-r--r-- 1,289 bytes parent folder | download | duplicates (2)
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
From 0dbe6424e9c7acb9e34e69e3252f2318bcfa09c9 Mon Sep 17 00:00:00 2001
From: Dima Kogan <dima@secretsauce.net>
Date: Fri, 28 Nov 2014 21:54:51 -0800
Subject: [PATCH 02/10] added DEB_CROSS_NO_BIARCH option to disable biarch
 support

---
 debian/rules.defs | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/debian/rules.defs b/debian/rules.defs
index 75b7918..027fc12 100644
--- a/debian/rules.defs
+++ b/debian/rules.defs
@@ -1892,7 +1892,9 @@ export biarch_multidir_names
 #ifeq ($(trunk_build),yes)
 #  no_biarch_libs := yes
 #endif
-no_biarch_libs :=
+ifdef DEB_CROSS_NO_BIARCH
+  no_biarch_libs := yes
+endif
 
 ifeq ($(no_biarch_libs),yes)
   with_lib64gcc		:= no
@@ -2048,6 +2050,15 @@ ifeq ($(no_biarch_libs),yes)
   with_libsfphobosdev	:= no
   with_libsfhsailrtdev	:= no
 
+  ifdef DEB_CROSS_NO_BIARCH
+    biarch64   	:= disabled by DEB_CROSS_NO_BIARCH
+    biarch32 	:= disabled by DEB_CROSS_NO_BIARCH
+    biarchn32 	:= disabled by DEB_CROSS_NO_BIARCH
+    biarchx32	:= disabled by DEB_CROSS_NO_BIARCH
+    biarchhf 	:= disabled by DEB_CROSS_NO_BIARCH
+    biarchsf 	:= disabled by DEB_CROSS_NO_BIARCH
+  endif
+
   ifeq ($(with_ada)-$(with_separate_gnat),yes-yes)
     biarchhf	:= disabled for Ada
     biarchsf	:= disabled for Ada
-- 
2.31.1