summaryrefslogtreecommitdiff
path: root/www/sope/patches/patch-ad
blob: b970caa204bbc6338058239b2324a8d9f9415cb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-ad,v 1.1 2006/01/19 22:15:58 joerg Exp $

--- configure.orig	2006-01-19 21:16:02.000000000 +0000
+++ configure
@@ -290,7 +290,7 @@ function checkLinking() {
   echo >>$tmpmake "include \$(GNUSTEP_MAKEFILES)/common.make"
   echo >>$tmpmake "TOOL_NAME           := linktest"
   echo >>$tmpmake "linktest_OBJC_FILES := dummytool.m"
-  echo >>$tmpmake "linktest_TOOL_LIBS  += -l$1"
+  echo >>$tmpmake "linktest_TOOL_LIBS  += -l$1 $3"
   echo >>$tmpmake "SYSTEM_LIB_DIR      += ${LINK_SYSLIBDIRS}"
   echo >>$tmpmake "include \$(GNUSTEP_MAKEFILES)/tool.make"
   
@@ -316,7 +316,14 @@ function checkLinking() {
 function checkDependencies() {
   checkLinking "xml2" required;
   checkLinking "ldap" required;
-  checkLinking "ssl"  required; # TODO: make optional
+  case ${OPSYS} in
+  DragonFly)
+    checkLinking "ssl"  required "-lcrypto" ; # TODO: make optional
+    ;;
+  *)
+    checkLinking "ssl"  required ; # TODO: make optional
+    ;;
+  esac
   checkLinking "pq"   required; # TODO: make optional
 }