projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.8.5.22:
[sbcl.git]
/
contrib
/
sb-bsd-sockets
/
sb-bsd-sockets.asd
diff --git
a/contrib/sb-bsd-sockets/sb-bsd-sockets.asd
b/contrib/sb-bsd-sockets/sb-bsd-sockets.asd
index
03c32c7
..
87361fb
100644
(file)
--- a/
contrib/sb-bsd-sockets/sb-bsd-sockets.asd
+++ b/
contrib/sb-bsd-sockets/sb-bsd-sockets.asd
@@
-29,8
+29,12
@@
(let ((dso-name (unix-name (car (output-files operation dso)))))
(unless (zerop
(run-shell-command
(let ((dso-name (unix-name (car (output-files operation dso)))))
(unless (zerop
(run-shell-command
- #+sunos "gcc -shared -lresolv -lsocket -lnsl -o ~S ~{~S ~}"
- #-sunos "gcc -shared -o ~S ~{~S ~} "
+ "gcc ~A -o ~S ~{~S ~}"
+ (if (sb-ext:posix-getenv "LDFLAGS")
+ (sb-ext:posix-getenv "LDFLAGS")
+ #+sunos "-shared -lresolv -lsocket -lnsl"
+ #+darwin "-bundle"
+ #-(or darwin sunos) "-shared")
dso-name
(mapcar #'unix-name
(mapcan (lambda (c)
dso-name
(mapcar #'unix-name
(mapcan (lambda (c)
@@
-46,7
+50,10
@@
(component-pathname c))))
(defmethod perform ((op compile-op) (c c-source-file))
(unless
(component-pathname c))))
(defmethod perform ((op compile-op) (c c-source-file))
(unless
- (= 0 (run-shell-command "gcc -fPIC -o ~S -c ~S"
+ (= 0 (run-shell-command "gcc ~A -o ~S -c ~S"
+ (if (sb-ext:posix-getenv "CFLAGS")
+ (sb-ext:posix-getenv "CFLAGS")
+ "-fPIC")
(unix-name (car (output-files op c)))
(unix-name (component-pathname c))))
(error 'operation-error :operation op :component c)))
(unix-name (car (output-files op c)))
(unix-name (component-pathname c))))
(error 'operation-error :operation op :component c)))