Skip to content

Commit

Permalink
fix: skip stripping when making RPM for different architecture (#325)
Browse files Browse the repository at this point in the history
By default the host's `/usr/bin/strip` is used, which won't
work when executables being stripped are for a different
architecture
  • Loading branch information
dsanders11 authored Jan 12, 2023
1 parent d13fed6 commit 168bbed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/spec.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
%define _binary_payload w<%= compressionLevel %>.xzdio

%if "%{_host_cpu}" != "%{_target_cpu}"
%global __strip /bin/true
%endif

Name: <%= name %>
Version: <%= version %>
Release: <%= revision %>%{?dist}
Expand Down

0 comments on commit 168bbed

Please sign in to comment.