Pārlūkot izejas kodu

correct runtime of IMAP.so perl component by supplying librt linkage into binary file header on Solaris

Michael Schloh von Bennewitz 21 gadi atpakaļ
vecāks
revīzija
a6f4608571
1 mainītis faili ar 13 papildinājumiem un 3 dzēšanām
  1. 13 3
      imapd/imapd.spec

+ 13 - 3
imapd/imapd.spec

@@ -107,9 +107,19 @@ AutoReqProv:  no
         `find . -name *.[ch] -print`
 
     #   ensure linking of Berkeley DB
-    %{l_shtool} subst \
-        -e 's;^\( *.LIBS..*\)\(\"\],.*\)$;\1 -ldb\2;' \
-        perl/imap/Makefile.PL
+    loclibs=""
+    case "%{l_platform -t}" in
+        *-sunos* )
+            %{l_shtool} subst \
+                -e 's;^\( *.LIBS..*\)\(\"\],.*\)$;\1 -ldb -lrt\2;' \
+                perl/imap/Makefile.PL
+        ;;
+        * )
+            %{l_shtool} subst \
+                -e 's;^\( *.LIBS..*\)\(\"\],.*\)$;\1 -ldb\2;' \
+                perl/imap/Makefile.PL
+        ;;
+    esac
 
     #   ensure invocation of correct perl
     %{l_shtool} subst \