[gnome-build-meta/juerg/strip-variables: 35/35] project.conf: Copy over variables needed for strip-commands



commit cec71619e9a54d96b896987d980d8a6ccabb275e
Author: Jürg Billeter <j bitron ch>
Date:   Sat Feb 9 18:58:27 2019 +0100

    project.conf: Copy over variables needed for strip-commands
    
    They have been removed from BuildStream master.
    
    https://gitlab.com/BuildStream/buildstream/merge_requests/987
    https://gitlab.com/freedesktop-sdk/freedesktop-sdk/merge_requests/772

 project.conf | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/project.conf b/project.conf
index eb50aeab..a23c21f9 100644
--- a/project.conf
+++ b/project.conf
@@ -241,6 +241,16 @@ variables:
     - arch == "arm":
         abi: "gnueabihf"
 
+  # Arguments for tooling used when stripping debug symbols
+  objcopy-link-args: --add-gnu-debuglink
+  objcopy-extract-args: |
+
+    --only-keep-debug --compress-debug-sections
+
+  strip-args: |
+
+    --remove-section=.comment --remove-section=.note --strip-unneeded
+
   # This should eventually done with buildstream includes
   strip-binaries: |
     touch source-files


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]