Browse Source

Made fsl(3) linking conditional to fix broken lib path problem.

Michael Schloh von Bennewitz 24 years ago
parent
commit
b7f0988f08
1 changed files with 5 additions and 1 deletions
  1. 5 1
      sendmail/sendmail.spec

+ 5 - 1
sendmail/sendmail.spec

@@ -50,7 +50,7 @@ Distribution: OpenPKG [EVAL]
 Group:        Mail
 License:      BSD
 Version:      8.12.5
-Release:      20020821
+Release:      20020822
 
 #   list of sources
 Source0:      ftp://ftp.sendmail.org/pub/sendmail/sendmail.%{version}.tar.gz
@@ -152,7 +152,11 @@ Conflicts:    ssmtp, exim, postfix
           echo "APPENDDEF(\`confENVDEF', \`-D_PATH_SENDMAILPID=\\\"%{l_prefix}/var/sendmail/sendmail.pid\\\"')dnl"
           echo "APPENDDEF(\`confINCDIRS', \`-I%{l_prefix}/include')dnl"
           echo "APPENDDEF(\`confLIBDIRS', \`-L%{l_prefix}/lib')dnl"
+%if "%{with_fsl}" == "yes"
           echo "APPENDDEF(\`confLIBS', \`-lfsl -ldb')dnl"
+%else
+          echo "APPENDDEF(\`confLIBS', \`-ldb')dnl"
+%endif
           echo "define(\`confSTDIO_TYPE', \`portable')dnl"
           echo "APPENDDEF(\`conf_sendmail_ENVDEF', \`-DSTARTTLS')dnl"
           echo "APPENDDEF(\`conf_sendmail_LIBS', \`-lssl -lcrypto')dnl"