From 61e6c79c0c658ab55cdc97ff12e9a6159f413072 Mon Sep 17 00:00:00 2001 From: chunchao Date: Tue, 11 Mar 2025 17:00:20 +0800 Subject: [PATCH] Add sw_64 support Project:TC2024110202 Signed-off-by: chunchao --- ocaml-labltk.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ocaml-labltk.spec b/ocaml-labltk.spec index e7ea43a..a8ec0d0 100644 --- a/ocaml-labltk.spec +++ b/ocaml-labltk.spec @@ -1,7 +1,7 @@ -%define anolis_release 1 +%define anolis_release 2 %undefine _package_note_flags -%ifarch %{ocaml_native_compiler} +%ifnarch sw_64 %global native_compiler 1 %else %global native_compiler 0 @@ -62,12 +62,12 @@ echo -e 'all:\ninstall:\n' > browser/Makefile # Build does not work in parallel. unset MAKEFLAGS -%if !%{native_compiler} -make byte -%else +%if %{native_compiler} make all opt \ SHAREDCCCOMPOPTS="%{optflags} -fPIC" \ TK_LINK="%{__global_ldflags} -ltk8.6 -ltcl8.6" +%else +make byte %endif %install @@ -115,5 +115,8 @@ install -m 0644 camltk/*.o $RPM_BUILD_ROOT%{_libdir}/ocaml/labltk %doc Changes README.mlTk %changelog +* Tue Mar 11 2025 Chunchao Zhang - 8.06.13-2 +- Add sw_64 support + * Mon Mar 20 2023 Yuanhong Peng - 8.06.13-1 - Init from upstream -- Gitee