瀏覽代碼

add optional thread support

Thorsten Hohmeier 19 年之前
父節點
當前提交
45c9261605
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      apr/apr.spec

+ 8 - 0
apr/apr.spec

@@ -35,6 +35,9 @@ License:      Apache
 Version:      1.2.7
 Release:      20060913
 
+#   package options
+%option       with_threads  no
+
 #   list of sources
 Source0:      http://www.apache.org/dist/apr/apr-%{version}.tar.gz
 Source1:      http://www.apache.org/dist/apr/apr-util-%{version}.tar.gz
@@ -82,6 +85,11 @@ Conflicts:    apache2
           --includedir=%{l_prefix}/include/apr \
           --enable-layout=GNU \
           --disable-threads \
+%if "%{with_threads}" == "yes"
+          --enable-threads \
+%else
+          --disable-threads \
+%endif
           --disable-shared
       %{l_make} %{l_mflags -O}
     ) || exit $?