Ralf S. Engelschall 24 лет назад
Родитель
Сommit
67cd17923f
1 измененных файлов с 8 добавлено и 1 удалено
  1. 8 1
      sqlite/sqlite.spec

+ 8 - 1
sqlite/sqlite.spec

@@ -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"