diff mbox series

Debian: gcc: add support for ARC

Message ID efef130b-ba69-fac0-3d34-9d9852ab6804@synopsys.com
State New
Headers show
Series Debian: gcc: add support for ARC | expand

Commit Message

Vineet Gupta June 4, 2021, 2:57 p.m. UTC
Missed attaching patches in original report.
diff mbox series

Patch

From 34ee1efe6c89da1b021f355382b94c909480d079 Mon Sep 17 00:00:00 2001
From: Vineet Gupta <vgupta@synopsys.com>
Date: Thu, 1 Apr 2021 14:57:49 -0700
Subject: [PATCH 4/4] ARC/debian: gcc: add build toogles as for other arches

This is equivalent of following for arc
- debian/patches/gcc-hash-style-gnu.diff
- debian/patches/gcc-as-needed.diff

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
---
 debian/patches/gcc-hash-style-gnu-arc.diff | 17 +++++++++++++++++
 debian/rules.patch                         |  1 +
 2 files changed, 18 insertions(+)
 create mode 100644 debian/patches/gcc-hash-style-gnu-arc.diff

diff --git a/debian/patches/gcc-hash-style-gnu-arc.diff b/debian/patches/gcc-hash-style-gnu-arc.diff
new file mode 100644
index 000000000000..dae6d77198b1
--- /dev/null
+++ b/debian/patches/gcc-hash-style-gnu-arc.diff
@@ -0,0 +1,17 @@ 
+#DP: Add updates for ARC as needed for other arches
+
+ - debian/patches/gcc-hash-style-gnu.diff
+ - debian/patches/gcc-as-needed.diff
+
+---
+--- a/src/gcc/config/arc/linux.h
++++ b/src/gcc/config/arc/linux.h
+@@ -37,6 +37,8 @@ along with GCC; see the file COPYING3.  If not see
+    available.  Override with -static.  */
+ #undef LINK_SPEC
+ #define LINK_SPEC "%{h*} \
++  -hash-style=gnu   \
++  -as-needed        \
+   %{static:-Bstatic} \
+   %{shared:-shared} \
+   %{symbolic:-Bsymbolic} \
diff --git a/debian/rules.patch b/debian/rules.patch
index 5c8aa1cd90f7..f00699636c10 100644
--- a/debian/rules.patch
+++ b/debian/rules.patch
@@ -84,6 +84,7 @@  debian_patches += \
 	pr97250-4 \
 	pr97714 \
 	arc-hf-default \
+	gcc-hash-style-gnu-arc \
 
 ifneq (,$(filter $(distrelease),wheezy jessie stretch buster lucid precise trusty xenial bionic cosmic disco eoan))
   debian_patches += pr85678-revert
-- 
2.25.1