From d51f7ea1729c331763ae2bbf727820ad5e50c6dc Mon Sep 17 00:00:00 2001 From: wangqiang Date: Mon, 26 Aug 2024 15:22:55 +0800 Subject: [PATCH] Modift spec to support building with clang --- byaccj.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/byaccj.spec b/byaccj.spec index 488f092..577a376 100644 --- a/byaccj.spec +++ b/byaccj.spec @@ -1,6 +1,6 @@ Name: byaccj Version: 1.15 -Release: 21 +Release: 22 Summary: BYACC/J Java extension License: Public Domain URL: http://byaccj.sourceforge.net/ @@ -32,7 +32,11 @@ sed -i -e 's|-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-versi %build cd src +%if "%{?toolchain}" == "clang" +%make_build yacc CC=clang CFLAGS="%{optflags}" +%else %make_build yacc CFLAGS="%{optflags}" +%endif %install install -d -m 755 %{buildroot}%{_bindir} @@ -45,6 +49,9 @@ install -p -m 755 src/yacc %{buildroot}%{_bindir}/%{name} %doc docs/* src/README %changelog +* Mon Aug 26 2024 wangqiang - 1.15-22 +- Support build with clang + * Fri Mar 03 2023 wulei - 1.15-21 - Add the compilation option pie -- Gitee