diff --git a/pkgs/racket-doc/scribblings/inside/cs-embedding.scrbl b/pkgs/racket-doc/scribblings/inside/cs-embedding.scrbl index 0ff8f82b3b..8a9f54c032 100644 --- a/pkgs/racket-doc/scribblings/inside/cs-embedding.scrbl +++ b/pkgs/racket-doc/scribblings/inside/cs-embedding.scrbl @@ -72,11 +72,14 @@ To embed Racket CS in a program, follow these steps: The @filepath{petite.boot}, @filepath{scheme.boot}, and @filepath{racket.boot} files are distributed with the Racket - software in the installation's @filepath{lib} directory. These files - can be combined into a single file---or even embedded into the - executable---as long as the @cpp{boot1_offset}, @cpp{boot2_offset}, - and @cpp{boot3_offset} fields of @cpp{racket_boot_arguments_t} are - set to identify the starting offset of each boot image in the file. + software in the installation's @filepath{lib} directory for Windows, + and they are distributed within the @filepath{Racket} framework on + Mac OS X; they must be @seclink["src-build"]{built} from source on Unix. + These files can be combined into a single file---or even + embedded into the executable---as long as the @cpp{boot1_offset}, + @cpp{boot2_offset}, and @cpp{boot3_offset} fields of + @cpp{racket_boot_arguments_t} are set to identify the starting + offset of each boot image in the file. See @secref["segment-ideas"] for advice on embedding files like @filepath{petite.boot} in an executable.} diff --git a/racket/src/worksp/csbuild.rkt b/racket/src/worksp/csbuild.rkt index f3de3fad38..a9c076c885 100644 --- a/racket/src/worksp/csbuild.rkt +++ b/racket/src/worksp/csbuild.rkt @@ -13,6 +13,7 @@ (define scheme-dir (build-path 'up "ChezScheme")) (define pull? #f) (define static-libs? #t) +(define install-boot? #t) ; currently always enabled (define machine (if (= 32 (system-type 'word)) "ti3nt" "ta6nt")) @@ -34,7 +35,7 @@ [("--extra-repos-base") url "Clone repos from ChezScheme/.git, etc." (unless (equal? url "") (set! extra-repos-base url))] - [("--disable-libs") "Disable installaton of non-embedded boot files" + [("--disable-libs") "Disable installaton of static libraries (currently ignored)" (set! static-libs? #f)] #:args clone-arg @@ -295,7 +296,7 @@ machine "machine") -(when static-libs? +(when install-boot? (bootstrap-racket! "../cs/c/add-terminator.rkt" "../build/petite-v.boot" "../../lib/petite.boot")