Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /contrib/sb-bsd-sockets/sb-bsd-sockets.asd [f43723] .. [0975e0] Maximize Restore

  Switch to side-by-side view

--- a/contrib/sb-bsd-sockets/sb-bsd-sockets.asd
+++ b/contrib/sb-bsd-sockets/sb-bsd-sockets.asd
@@ -28,8 +28,7 @@
 		     (find-package "SB-BSD-SOCKETS-SYSTEM"))
 	     filename tmp-c-source :sb-bsd-sockets-internal)
     (and
-     (= (run-shell-command
-	 "/usr/bin/gcc -o ~S ~S" (namestring tmp-a-dot-out)
+     (= (run-shell-command "gcc -o ~S ~S" (namestring tmp-a-dot-out)
 	 (namestring tmp-c-source)) 0)
      (= (run-shell-command "~A >~A"
 			   (namestring tmp-a-dot-out)
@@ -62,7 +61,8 @@
   (let ((dso-name (unix-name (car (output-files operation dso)))))
     (unless (zerop
 	     (run-shell-command
-	      "gcc -shared -o ~S ~{~S ~}"
+	      #+sunos "gcc -shared -lresolv -lsocket -lnsl -o ~S ~{~S ~}"
+	      #-sunos "gcc -shared -o ~S ~{~S ~} "
 	      dso-name
 	      (mapcar #'unix-name
 		      (mapcan (lambda (c)
@@ -78,7 +78,7 @@
 		  (component-pathname c))))
 (defmethod perform ((op compile-op) (c c-source-file))
   (unless
-      (= 0 (run-shell-command "/usr/bin/gcc -fPIC -o ~S -c ~S"
+      (= 0 (run-shell-command "gcc -fPIC -o ~S -c ~S"
 			      (unix-name (car (output-files op c)))
 			      (unix-name (component-pathname c))))
     (error 'operation-error :operation op :component c)))
@@ -111,7 +111,7 @@
 		 
 		 (:file "sockopt" :depends-on ("sockets"))
 		 (:file "inet" :depends-on ("sockets" "split"  "constants" ))
-		 (:file "unix" :depends-on ("sockets" "split" "constants" ))
+		 (:file "local" :depends-on ("sockets" "split" "constants" ))
 		 (:file "name-service" :depends-on ("sockets" "constants" "alien"))
 		 (:file "misc" :depends-on ("sockets" "constants"))