(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)
(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)
(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)))
(: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"))
(:static-file "doc" :pathname "doc.lisp")
(:static-file "TODO")))
+(defmethod perform ((o test-op) (c (eql (find-system :sb-bsd-sockets))))
+ (or (funcall (intern "DO-TESTS" (find-package "RT")))
+ (error "test-op failed")))
+