|
|
@@ -27,6 +27,9 @@
|
|
|
%ifndef with_utf8
|
|
|
%define with_utf8 no
|
|
|
%endif
|
|
|
+%ifndef with_ndebug
|
|
|
+%define with_ndebug yes
|
|
|
+%endif
|
|
|
|
|
|
# package information
|
|
|
Name: sqlite
|
|
|
@@ -62,14 +65,18 @@ AutoReqProv: no
|
|
|
the server. The SQLite library reads and writes directly to and from
|
|
|
the database files on disk.
|
|
|
|
|
|
- Options: with_utf8=%{with_utf8}
|
|
|
+ Options: with_utf8=%{with_utf8} with_ndebug=%{with_ndebug}
|
|
|
|
|
|
%prep
|
|
|
%setup -q -n sqlite
|
|
|
|
|
|
%build
|
|
|
CC="%{l_cc}" \
|
|
|
+%if "%{with_utf8}" == "yes"
|
|
|
+ CFLAGS="%{l_cflags -O}" \
|
|
|
+%else
|
|
|
CFLAGS="%{l_cflags -O} -DNDEBUG=1" \
|
|
|
+%endif
|
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
|
%if "%{with_utf8}" == "yes"
|