From c69f8ba291d61434d552c899c4a03aeb9ea7f097 Mon Sep 17 00:00:00 2001 From: cf_zhao Date: Tue, 23 May 2023 20:10:54 +0800 Subject: [PATCH] Support building this package with clang --- telnet.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telnet.spec b/telnet.spec index 3021d7f..4a49cf6 100644 --- a/telnet.spec +++ b/telnet.spec @@ -63,11 +63,11 @@ mv -f telnet telnet-NETKIT %autosetup -T -D -a 1 -n netkit-telnet-%{version} -p1 %build -%{_configure} --with-c-compiler=gcc --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} +%{_configure} --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} sed -i 's,-O2,\$(CC_FLAGS),;s,LDFLAGS=.*,LDFLAGS=\$(LD_FLAGS),;s,^MANDIR=.*$,MANDIR=%{_mandir},' MCONFIG sed -i 's,install [+-]s,install,g' ./telnet/GNUmakefile ./telnetd/Makefile ./telnetlogin/Makefile ./telnet-NETKIT/Makefile -%make_build CC_FLAGS="$RPM_OPT_FLAGS -fpie" LD_FLAGS="$LD_FLAGS -z now -pie" +%make_build CC_FLAGS="$RPM_OPT_FLAGS -fpie -Wno-int-conversion" LD_FLAGS="$LD_FLAGS -z now -pie" %install install -d %{buildroot}{%{_bindir},%{_sbindir},%{_mandir}/man{1,5,8}} -- Gitee