| : .lib-error ( -- ) |
: .lib-error ( -- ) |
| [ifdef] lib-error |
[ifdef] lib-error |
| ['] cr stderr outfile-execute |
['] cr stderr outfile-execute |
| lib-error ['] type outfile-execute |
lib-error ['] type stderr outfile-execute |
| [then] ; |
[then] ; |
| |
|
| DEFER compile-wrapper-function |
DEFER compile-wrapper-function |
| lib-filename 2@ append s" .la" append ( c-addr u ) |
lib-filename 2@ append s" .la" append ( c-addr u ) |
| 2dup system drop free throw $? abort" libtool link failed" |
2dup system drop free throw $? abort" libtool link failed" |
| lib-filename 2@ s" .la" s+ |
lib-filename 2@ s" .la" s+ |
| |
\ 2dup type cr |
| 2dup open-lib dup 0= if |
2dup open-lib dup 0= if |
| .lib-error true abort" open-lib failed" |
.lib-error true abort" open-lib failed" |
| endif |
endif |