--- gforth/libcc.fs 2008/02/12 20:28:51 1.30 +++ gforth/libcc.fs 2008/04/25 22:17:17 1.32 @@ -444,7 +444,7 @@ create gen-wrapped-types : .lib-error ( -- ) [ifdef] lib-error ['] cr stderr outfile-execute - lib-error ['] type outfile-execute + lib-error ['] type stderr outfile-execute [then] ; DEFER compile-wrapper-function @@ -455,6 +455,7 @@ DEFER compile-wrapper-function s" includedir" getenv append ] sliteral s" -O -c " s+ lib-filename 2@ append s" .c -o " append lib-filename 2@ append s" .lo" append ( c-addr u ) +\ cr 2dup type 2dup system drop free throw $? abort" libtool compile failed" [ libtool-command s" --silent --mode=link gcc -module -rpath " s+ ] sliteral tempdir s+ s" " append @@ -462,6 +463,7 @@ DEFER compile-wrapper-function lib-filename 2@ append s" .la" append ( c-addr u ) 2dup system drop free throw $? abort" libtool link failed" lib-filename 2@ s" .la" s+ +\ 2dup type cr 2dup open-lib dup 0= if .lib-error true abort" open-lib failed" endif