From 3ae64352cae306bc5799434896502a02e44e526e Mon Sep 17 00:00:00 2001 From: wubijie Date: Mon, 21 Aug 2023 14:40:48 +0800 Subject: [PATCH] Resolve build problem and issues --- libcutl.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libcutl.spec b/libcutl.spec index 4060009..fb74fd2 100644 --- a/libcutl.spec +++ b/libcutl.spec @@ -48,6 +48,10 @@ rm -rv cutl/details/boost rm -rv cutl/details/expat %build +CC="$CC -std=gnu89" +export CXXFLAGS="-std=c++14 $RPM_OPT_FLAGS" +%configure --disable-static --enable-shared + # Use the system Boost and expat libraries confopts="--disable-static --with-external-expat %{?external_boost}" # If building on RHEL 5 -- Gitee