Build an executable that is not damaged by stripping

This commit is contained in:
Jerry James 2023-10-04 21:14:11 -06:00
parent 88eec2b4e2
commit 26cf444068

View File

@ -2,8 +2,6 @@
ExcludeArch: %{ix86} ExcludeArch: %{ix86}
%ifnarch %{ocaml_native_compiler} %ifnarch %{ocaml_native_compiler}
# Stripping the binary removes its bytecode payload
%global __strip %{_bindir}/true
%global debug_package %{nil} %global debug_package %{nil}
%endif %endif
@ -24,9 +22,9 @@ BuildRequires: ocaml-labltk-devel
BuildRequires: ocaml-ocamlbuild BuildRequires: ocaml-ocamlbuild
BuildRequires: ocaml-compiler-libs BuildRequires: ocaml-compiler-libs
BuildRequires: ocaml-ocamldoc BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-rpm-macros
BuildRequires: m4, ncurses-devel BuildRequires: m4, ncurses-devel
BuildRequires: make BuildRequires: make
BuildRequires: python3
Requires: ocaml Requires: ocaml
# Do not require ocaml-compiler-libs at runtime # Do not require ocaml-compiler-libs at runtime
@ -61,6 +59,9 @@ sed -i 's,/usr/local/man,%{_mandir},' configure
# Configure bug? dynlink_subdir is the empty string # Configure bug? dynlink_subdir is the empty string
sed -i 's/\${dynlink_subdir}/dynlink/' configure sed -i 's/\${dynlink_subdir}/dynlink/' configure
# Build an executable that is not damaged by stripping
sed -i 's/\(custom=\)-custom/\1-output-complete-exe/' configure
%build %build
ocamlc -version ocamlc -version
@ -111,6 +112,9 @@ sed -i '/ocamlfind\.conf/d' .ofiles
%changelog %changelog
* Wed Oct 4 2023 Jerry James <loganjerry@gmail.com> - 1.9.6-5
- Build an executable that is not damaged by stripping
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.6-5 * Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.6-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild