From 58515d6c39f9ccc07b6be9a84962506f6038b6d8 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 22 Jan 2020 10:14:18 +0000 Subject: [PATCH] modified pkgs/hawk.spec.in --- hawk/pkgs/hawk.spec.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hawk/pkgs/hawk.spec.in b/hawk/pkgs/hawk.spec.in index 081495a1..a4dee477 100644 --- a/hawk/pkgs/hawk.spec.in +++ b/hawk/pkgs/hawk.spec.in @@ -31,13 +31,15 @@ The header files and libraries for developing applications with HAWK. %build RPM_OPT_FLAGS="$(echo $RPM_OPT_FLAGS | %{__sed} 's/-O2/-O3/')" -CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS} -std=c++11" ./configure --prefix=%{_prefix} --libdir=%{_libdir} --sysconfdir=%{_sysconfdir} --enable-shared=no --enable-static-module=yes --enable-unicode="yes:2w" --enable-cxx=yes --enable-mod=mysql=yes --enable-mod-uci=no ##CC=gcc44 CXX=g++44 +CFLAGS="${RPM_OPT_FLAGS} -fPIC" CXXFLAGS="${RPM_OPT_FLAGS} -fPIC -std=c++11" ./configure --prefix=%{_prefix} --libdir=%{_libdir} --sysconfdir=%{_sysconfdir} --enable-shared=no --enable-static-module=yes --enable-unicode="yes:2w" --enable-cxx=yes --enable-mod=mysql=yes --enable-mod-uci=no ##CC=gcc44 CXX=g++44 make %install make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT%{_libdir}/*.la rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig +rm -f $RPM_BUILD_ROOT%{_bindir}/uni-case +rm -f $RPM_BUILD_ROOT%{_bindir}/uni-prop %clean rm -rf "$RPM_BUILD_ROOT"