Parcourir la source

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

Michael Schloh von Bennewitz il y a 21 ans
Parent
commit
a6f4608571
1 fichiers modifiés avec 13 ajouts et 3 suppressions
  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 \