From 34ee1efe6c89da1b021f355382b94c909480d079 Mon Sep 17 00:00:00 2001 From: Vineet Gupta 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 --- 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