Просмотр исходного кода

Fix building with options by reordering libraries.

Michael Schloh von Bennewitz 23 лет назад
Родитель
Сommit
324e94e9ee
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      postfix/postfix.spec

+ 4 - 4
postfix/postfix.spec

@@ -149,16 +149,16 @@ Conflicts:    sendmail, ssmtp, exim
     CCARGS="$CCARGS -DHAS_MYSQL -I%{l_prefix}/include/mysql"
     AUXLIBS="$AUXLIBS -L%{l_prefix}/lib/mysql -lmysqlclient -lz -lm"
 %endif
-%if "%{with_tls}" == "yes"
-    CCARGS="$CCARGS -DHAS_SSL"
-    AUXLIBS="$AUXLIBS -lssl -lcrypto"
-%endif
 %if "%{with_sasl}" == "yes"
     CCARGS="$CCARGS -DUSE_SASL_AUTH -I%{l_prefix}/include/sasl"
     AUXLIBS="$AUXLIBS -lsasl2"
     if [ -f /usr/lib/libdl.so -o -f /usr/lib/libdl.a ]; then
         AUXLIBS="$AUXLIBS -ldl"
     fi
+%endif
+%if "%{with_tls}" == "yes"
+    CCARGS="$CCARGS -DHAS_SSL"
+    AUXLIBS="$AUXLIBS -lssl -lcrypto"
 %endif
     AUXLIBS="$AUXLIBS `%{l_prefix}/bin/fsl-config --all --ldflags --libs`"
     %{l_make} %{l_mflags} makefiles \