--- gforth/envos.fs.in 2008/08/08 20:56:14 1.8 +++ gforth/envos.fs.in 2009/10/14 17:44:04 1.11 @@ -32,10 +32,17 @@ set-current : libtool-cc ( -- c-addr u ) \ gforth \G invocation string of the C compiler used for libtool - s" @CC@" ; + s" @LIBTOOL_CC@" ; + +: libtool-flags ( -- c-addr u ) \ gforth +\G force no undefined for cygwin + [ s" @host_os@" s" cygwin" str= ] [IF] s" -no-undefined " + [ELSE] s" " [THEN] ; \ test for the presence of libffi or ffcall @FFCALLFLAG@ constant ffcall-present \ libffi present (on building) @LIBFFIFLAG@ constant libffi-present \ ffcall libs present (on building) +: include-ffi.h-string ( -- c-addr u ) + s" #include <@FFI_H_NAME@>" ;