Changeset 12789 in project for chicken/trunk


Ignore:
Timestamp:
12/07/08 16:29:38 (12 years ago)
Author:
felix winkelmann
Message:

setup-utils removal was quite incomplete; added -ignore-repository; msvc Makefile fix (thanks to Ivan Shcheklein); lots of mindless hacking

Location:
chicken/trunk
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • chicken/trunk/Makefile.msvc

    r12585 r12789  
    6161# options
    6262
    63 C_COMPILER_OPTIONS = -nologo -MD -wd4142 -DHAVE_CHICKEN_CONFIG_H
     63C_COMPILER_OPTIONS = -nologo -wd4142 -DHAVE_CHICKEN_CONFIG_H
     64C_COMPILER_STATIC_OPTIONS = -MT
     65C_COMPILER_SHARED_OPTIONS = -MD -DPIC
    6466LINKER_OPTIONS = -nologo
    6567C_COMPILER_GUI_RUNTIME_OPTIONS = -DC_WINDOWS_GUI
     
    8284
    8385C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS = $(C_COMPILER_BUILD_RUNTIME_OPTIONS) -DC_UNSAFE_RUNTIME
    84 C_COMPILER_SHARED_OPTIONS = -DPIC
    8586
    8687# linker-dependent output options
  • chicken/trunk/batch-driver.scm

    r12630 r12789  
    214214    (when (or unit-name dynamic)
    215215      (set! standalone-executable #f))
     216    (when (memq 'ignore-repository options)
     217      (repository-path #f))
    216218    (set! debugging-chicken
    217219      (append-map
     
    383385
    384386    ;;*** hardcoded "modules.db" is bad (also used in chicken-install.scm)
    385     (and-let* ((dbfile (file-exists? (make-pathname (repository-path) "modules.db"))))
     387    (and-let* ((rp (repository-path))
     388               (dbfile (file-exists? (make-pathname rp "modules.db"))))
    386389      (dribble "loading database ~a ..." dbfile)
    387390      (for-each
  • chicken/trunk/c-platform.scm

    r12595 r12789  
    119119          no-trace no-warnings unsafe block
    120120    check-syntax to-stdout no-usual-integrations case-insensitive no-lambda-info
    121     profile inline keep-shadowed-macros
     121    profile inline keep-shadowed-macros ignore-repository
    122122    fixnum-arithmetic disable-interrupts optimize-leaf-routines
    123123    lambda-lift compile-syntax tag-pointers accumulate-profile
  • chicken/trunk/chicken-status.scm

    r12786 r12789  
    2525
    2626
    27 (require-library setup-utils srfi-1 posix data-structures utils ports regex files)
     27(require-library setup-api srfi-1 posix data-structures utils ports regex files)
    2828
    2929
     
    3131 
    3232  (import scheme chicken)
    33   (import setup-utils srfi-1 posix data-structures utils ports regex
    34           files)
     33  (import srfi-1 posix data-structures utils ports regex
     34          files setup-api)
    3535
    3636  (define (gather-eggs patterns)
  • chicken/trunk/chicken.1

    r12595 r12789  
    199199.B \-help
    200200Print a summary of available options and the format of the command-line parameters and exit the compiler.
     201
     202.TP
     203.B \-ignore\-repository
     204Do not load any extensions from the repository (treat repository as empty).
    201205
    202206.TP
  • chicken/trunk/csc.scm

    r12595 r12789  
    177177    -lambda-lift -dynamic -disable-stack-overflow-checks -local
    178178    -emit-external-prototypes-first -inline -extension -release -static-extensions
    179     -analyze-only -keep-shadowed-macros -inline-global))
     179    -analyze-only -keep-shadowed-macros -inline-global) -ignore-repository)
    180180
    181181(define-constant complex-options
     
    408408    -prologue FILENAME          include file before main source file
    409409    -epilogue FILENAME          include file after main source file
     410    -ignore-repository          do not refer to repository for extensions
    410411
    411412    -e  -embedded               compile as embedded (don't generate `main()')
     
    855856(define (static-extension-info)
    856857  (let ((rpath (repository-path)))
    857     (if (or static static-libs static-extensions)
     858    (if (and rpath (or static static-libs static-extensions))
    858859        (let loop ((exts required-extensions) (libs '()) (opts '()))
    859860          (if (null? exts)
  • chicken/trunk/defaults.make

    r12610 r12789  
    342342IMPORT_LIBRARIES = chicken lolevel srfi-1 srfi-4 data-structures ports files posix srfi-13 srfi-69 extras \
    343343        regex srfi-14 tcp foreign scheme srfi-18 utils csi
    344 IMPORT_LIBRARIES += setup-api setup-download setup-utils
     344IMPORT_LIBRARIES += setup-api setup-download
    345345
    346346ifdef STATICBUILD
     
    364364        $(CSI_SHARED_EXECUTABLE) $(CHICKEN_PROFILE_PROGRAM)$(EXE) \
    365365        $(CSC_PROGRAM)$(EXE) $(CHICKEN_INSTALL_PROGRAM)$(EXE) $(CHICKEN_UNINSTALL_PROGRAM)$(EXE) \
    366         $(CHICKEN_STATUS_PROGRAM)$(EXE) setup-utils.so setup-download.so setup-api.so \
     366        $(CHICKEN_STATUS_PROGRAM)$(EXE) setup-download.so setup-api.so \
    367367        chicken.info $(CHICKEN_BUG_PROGRAM)$(EXE) \
    368368        $(IMPORT_LIBRARIES:%=%.import.so)
  • chicken/trunk/eval.scm

    r12559 r12789  
    10951095        [string-append string-append] )
    10961096    (lambda (p inc?)
     1097      (let ((rp (##sys#repository-path)))
    10971098        (define (check path)
    10981099          (let ([p0 (string-append path "/" p)])
    1099             (and (or (and (##sys#fudge 24) ; dload?
     1100            (and (or (and rp (##sys#fudge 24) ; dload?
    11001101                          (file-exists? (##sys#string-append p0 ##sys#load-dynamic-extension)))
    11011102                     (file-exists? (##sys#string-append p0 source-file-extension)) )
    11021103                 p0) ) )
    1103         (let loop ([paths (##sys#append (list (##sys#repository-path))
    1104                                         (if inc? (##sys#append ##sys#include-pathnames '(".")) '()) ) ] )
    1105           (and (pair? paths)
    1106                (let ([pa (##sys#slot paths 0)])
    1107                  (or (check pa)
    1108                      (loop (##sys#slot paths 1)) ) ) ) ) ) ) )
     1104          (let loop ([paths (##sys#append
     1105                             (if rp (list rp) '())
     1106                             (if inc? (##sys#append ##sys#include-pathnames '(".")) '()) ) ] )
     1107            (and (pair? paths)
     1108                 (let ([pa (##sys#slot paths 0)])
     1109                   (or (check pa)
     1110                       (loop (##sys#slot paths 1)) ) ) ) ) ) ) ))
    11091111
    11101112(define ##sys#loaded-extensions '())
     
    11581160        [read read] )
    11591161    (lambda (id loc)
    1160       (let* ((p (##sys#canonicalize-extension-path id loc))
    1161              (rpath (string-append (##sys#repository-path) "/" p ".")) )
    1162         (cond ((file-exists? (string-append rpath setup-file-extension))
    1163                => (cut with-input-from-file <> read) )
    1164               (else #f) ) ) ) ) )
     1162      (and-let* ((rp (##sys#repository-path)))
     1163        (let* ((p (##sys#canonicalize-extension-path id loc))
     1164               (rpath (string-append rp "/" p ".")) )
     1165          (cond ((file-exists? (string-append rpath setup-file-extension))
     1166                 => (cut with-input-from-file <> read) )
     1167                (else #f) ) ) ) ) ))
    11651168
    11661169(define (extension-information ext)
     
    14701473                                (##sys#append
    14711474                                 ##sys#include-pathnames
    1472                                  (list (##sys#repository-path)))
     1475                                 (let ((rp (##sys#repository-path)))
     1476                                   (if rp
     1477                                       (list (##sys#repository-path))
     1478                                       '())))
    14731479                                ##sys#include-pathnames) ) )
    14741480            (cond ((eq? paths '()) fname)
  • chicken/trunk/expand.scm

    r12631 r12789  
    15451545         (dlist (module-defined-list mod))
    15461546         (elist (module-exist-list mod))
     1547         (missing #f)
    15471548         (sdlist (map (lambda (sym) (assq (car sym) (##sys#macro-environment)))
    15481549                      (module-defined-syntax-list mod)))
     
    15741575                                       (cdr a))
    15751576                                      ((not def)
     1577                                       (set! missing #t)
    15761578                                       (##sys#warn
    15771579                                        (string-append
     
    15791581                                         (symbol->string name)
    15801582                                         "' has not been defined")
    1581                                         id) )
     1583                                        id)
     1584                                       #f)
    15821585                                      (else (##sys#module-rename id name)))))))
    15831586                       (loop (cdr xl))))))))
     
    15931596     (lambda (u)
    15941597       (unless (memq u elist)
     1598         (set! missing #t)
    15951599         (##sys#warn "reference to possibly unbound identifier" u)
    15961600         (and-let* ((a (##sys#get u '##core#db)))
     
    16071611        (symbol->string name)
    16081612        "'")))
     1613    (when missing
     1614      (##sys#error "module unresolved"))
    16091615    (let* ((exports
    16101616            (map (lambda (exp)
  • chicken/trunk/henrietta.scm

    r11978 r12789  
    3131
    3232  (import scheme chicken regex extras utils ports srfi-1 posix)
    33   (import setup-utils setup-download)
     33  (import setup-download)
    3434
    3535  (define *default-transport* 'svn)
  • chicken/trunk/manual/Acknowledgements

    r12584 r12789  
    3131Raikov, Joel Reymont, Eric Rochester, Andreas Rottman, David Rush,
    3232Lars Rustemeier, Daniel Sadilek, Oskar Schirmer, Burton Samograd, Reed
    33 Sheridan, Ronald Schroeder, Spencer Schumann, Alex Shinn, Ivan
    34 Shmakov, Shmul, Tony Sidaway, Jeffrey B. Siegal, Andrey Sidorenko,
    35 Michele Simionato, Volker Stolz, Jon Strait, Dorai Sitaram, Robert
    36 Skeels, Jason Songhurst, Clifford Stein, Sunnan, Zbigniew Szadkowski,
    37 Rick Taube, Nathan Thern, Mike Thomas, Minh Thu, Christian Tismer,
    38 Andre van Tonder, John Tobey, Henrik Tramberend, Vladimir Tsichevsky,
    39 Neil van Dyke, Sander Vesik, Jaques Vidrine, Panagiotis Vossos, Shawn
    40 Wagner, Peter Wang, Ed Watkeys, Brad Watson, Thomas Weidner, Goeran
    41 Weinholt, Matthew Welland, Drake Wilson, Joerg Wittenberger, Peter
    42 Wright, Mark Wutka, Richard Zidlicky and Houman Zolfaghari for
    43 bug-fixes, tips and suggestions.
     33Sheridan, Ronald Schroeder, Spencer Schumann, Ivan Shcheklein, Alex
     34Shinn, Ivan Shmakov, Shmul, Tony Sidaway, Jeffrey B. Siegal, Andrey
     35Sidorenko, Michele Simionato, Volker Stolz, Jon Strait, Dorai Sitaram,
     36Robert Skeels, Jason Songhurst, Clifford Stein, Sunnan, Zbigniew
     37Szadkowski, Rick Taube, Nathan Thern, Mike Thomas, Minh Thu, Christian
     38Tismer, Andre van Tonder, John Tobey, Henrik Tramberend, Vladimir
     39Tsichevsky, Neil van Dyke, Sander Vesik, Jaques Vidrine, Panagiotis
     40Vossos, Shawn Wagner, Peter Wang, Ed Watkeys, Brad Watson, Thomas
     41Weidner, Goeran Weinholt, Matthew Welland, Drake Wilson, Joerg
     42Wittenberger, Peter Wright, Mark Wutka, Richard Zidlicky and Houman
     43Zolfaghari for bug-fixes, tips and suggestions.
    4444
    4545CHICKEN uses the PCRE regular expression package ([[http://www.pcre.org]]),
  • chicken/trunk/rules.make

    r12788 r12789  
    267267        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    268268          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     269          $(C_COMPILER_STATIC_OPTIONS) \
    269270          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    270271gui-runtime-static$(O): runtime.c chicken.h $(CHICKEN_CONFIG_H)
    271272        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    272273          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     274          $(C_COMPILER_STATIC_OPTIONS) \
    273275          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $(C_COMPILER_GUI_RUNTIME_OPTIONS) $< \
    274276          $(C_COMPILER_OUTPUT)
    275277eval-static$(O): eval.c chicken.h $(CHICKEN_CONFIG_H)
    276278        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
     279          $(C_COMPILER_STATIC_OPTIONS) \
    277280          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
    278281          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
     
    280283        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    281284          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     285          $(C_COMPILER_STATIC_OPTIONS) \
    282286          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    283287chicken-syntax-static$(O): chicken-syntax.c chicken.h $(CHICKEN_CONFIG_H)
    284288        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    285289          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     290          $(C_COMPILER_STATIC_OPTIONS) \
    286291          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    287292data-structures-static$(O): data-structures.c chicken.h $(CHICKEN_CONFIG_H)
    288293        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    289294          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     295          $(C_COMPILER_STATIC_OPTIONS) \
    290296          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    291297ports-static$(O): ports.c chicken.h $(CHICKEN_CONFIG_H)
    292298        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    293299          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     300          $(C_COMPILER_STATIC_OPTIONS) \
    294301          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    295302files-static$(O): files.c chicken.h $(CHICKEN_CONFIG_H)
    296303        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    297304          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     305          $(C_COMPILER_STATIC_OPTIONS) \
    298306          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    299307extras-static$(O): extras.c chicken.h $(CHICKEN_CONFIG_H)
    300308        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    301309          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     310          $(C_COMPILER_STATIC_OPTIONS) \
    302311          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    303312library-static$(O): library.c chicken.h $(CHICKEN_CONFIG_H)
    304313        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    305314          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     315          $(C_COMPILER_STATIC_OPTIONS) \
    306316          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    307317lolevel-static$(O): lolevel.c chicken.h $(CHICKEN_CONFIG_H)
    308318        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    309319          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     320          $(C_COMPILER_STATIC_OPTIONS) \
    310321          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    311322posixunix-static$(O): posixunix.c chicken.h $(CHICKEN_CONFIG_H)
    312323        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    313324          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     325          $(C_COMPILER_STATIC_OPTIONS) \
    314326          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    315327posixwin-static$(O): posixwin.c chicken.h $(CHICKEN_CONFIG_H)
    316328        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    317329          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     330          $(C_COMPILER_STATIC_OPTIONS) \
    318331          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    319332profiler-static$(O): profiler.c chicken.h $(CHICKEN_CONFIG_H)
    320333        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    321334          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     335          $(C_COMPILER_STATIC_OPTIONS) \
    322336          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    323337regex-static$(O): regex.c chicken.h $(CHICKEN_CONFIG_H)
    324338        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(PCRE_INCLUDES) \
    325339          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     340          $(C_COMPILER_STATIC_OPTIONS) \
    326341          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $(C_COMPILER_PCRE_OPTIONS) $< $(C_COMPILER_OUTPUT)
    327342scheduler-static$(O): scheduler.c chicken.h $(CHICKEN_CONFIG_H)
    328343        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    329344          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     345          $(C_COMPILER_STATIC_OPTIONS) \
    330346          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    331347srfi-1-static$(O): srfi-1.c chicken.h $(CHICKEN_CONFIG_H)
    332348        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    333349          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     350          $(C_COMPILER_STATIC_OPTIONS) \
    334351          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    335352srfi-13-static$(O): srfi-13.c chicken.h $(CHICKEN_CONFIG_H)
    336353        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    337354          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     355          $(C_COMPILER_STATIC_OPTIONS) \
    338356          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    339357srfi-14-static$(O): srfi-14.c chicken.h $(CHICKEN_CONFIG_H)
    340358        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    341359          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     360          $(C_COMPILER_STATIC_OPTIONS) \
    342361          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    343362srfi-18-static$(O): srfi-18.c chicken.h $(CHICKEN_CONFIG_H)
    344363        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    345364          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     365          $(C_COMPILER_STATIC_OPTIONS) \
    346366          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    347367srfi-69-static$(O): srfi-69.c chicken.h $(CHICKEN_CONFIG_H)
    348368        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    349369          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     370          $(C_COMPILER_STATIC_OPTIONS) \
    350371          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    351372srfi-4-static$(O): srfi-4.c chicken.h $(CHICKEN_CONFIG_H)
    352373        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    353374          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     375          $(C_COMPILER_STATIC_OPTIONS) \
    354376          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    355377stub-static$(O): stub.c chicken.h $(CHICKEN_CONFIG_H)
    356378        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    357379          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     380          $(C_COMPILER_STATIC_OPTIONS) \
    358381          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    359382tcp-static$(O): tcp.c chicken.h $(CHICKEN_CONFIG_H)
    360383        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    361384          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     385          $(C_COMPILER_STATIC_OPTIONS) \
    362386          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    363387utils-static$(O): utils.c chicken.h $(CHICKEN_CONFIG_H)
    364388        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    365389          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     390          $(C_COMPILER_STATIC_OPTIONS) \
    366391          $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    367392
     
    369394        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    370395          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     396          $(C_COMPILER_STATIC_OPTIONS) \
    371397          $(C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    372398ueval-static$(O): ueval.c chicken.h $(CHICKEN_CONFIG_H)
    373399        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    374400          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     401          $(C_COMPILER_STATIC_OPTIONS) \
    375402          $(C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    376403udata-structures-static$(O): udata-structures.c chicken.h $(CHICKEN_CONFIG_H)
    377404        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    378405          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     406          $(C_COMPILER_STATIC_OPTIONS) \
    379407          $(C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    380408uports-static$(O): uports.c chicken.h $(CHICKEN_CONFIG_H)
    381409        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    382410          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     411          $(C_COMPILER_STATIC_OPTIONS) \
    383412          $(C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    384413ufiles-static$(O): ufiles.c chicken.h $(CHICKEN_CONFIG_H)
    385414        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    386415          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     416          $(C_COMPILER_STATIC_OPTIONS) \
    387417          $(C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    388418uextras-static$(O): uextras.c chicken.h $(CHICKEN_CONFIG_H)
    389419        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    390420          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     421          $(C_COMPILER_STATIC_OPTIONS) \
    391422          $(C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    392423ulibrary-static$(O): ulibrary.c chicken.h $(CHICKEN_CONFIG_H)
    393424        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    394425          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     426          $(C_COMPILER_STATIC_OPTIONS) \
    395427          $(C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    396428ulolevel-static$(O): ulolevel.c chicken.h $(CHICKEN_CONFIG_H)
    397429        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    398430          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     431          $(C_COMPILER_STATIC_OPTIONS) \
    399432          $(C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    400433uposixunix-static$(O): uposixunix.c chicken.h $(CHICKEN_CONFIG_H)
    401434        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    402435          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     436          $(C_COMPILER_STATIC_OPTIONS) \
    403437          $(C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    404438uposixwin-static$(O): uposixwin.c chicken.h $(CHICKEN_CONFIG_H)
    405439        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    406440          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     441          $(C_COMPILER_STATIC_OPTIONS) \
    407442          $(C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    408443uregex-static$(O): uregex.c chicken.h $(CHICKEN_CONFIG_H)
    409444        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    410445          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) $(PCRE_INCLUDES) \
     446          $(C_COMPILER_STATIC_OPTIONS) \
    411447          $(C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS) $(C_COMPILER_PCRE_OPTIONS) $< $(C_COMPILER_OUTPUT)
    412448usrfi-1-static$(O): usrfi-1.c chicken.h $(CHICKEN_CONFIG_H)
    413449        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    414450          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     451          $(C_COMPILER_STATIC_OPTIONS) \
    415452          $(C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    416453usrfi-13-static$(O): usrfi-13.c chicken.h $(CHICKEN_CONFIG_H)
    417454        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    418455          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     456          $(C_COMPILER_STATIC_OPTIONS) \
    419457          $(C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    420458usrfi-14-static$(O): usrfi-14.c chicken.h $(CHICKEN_CONFIG_H)
    421459        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    422460          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     461          $(C_COMPILER_STATIC_OPTIONS) \
    423462          $(C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    424463usrfi-18-static$(O): usrfi-18.c chicken.h $(CHICKEN_CONFIG_H)
    425464        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    426465          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     466          $(C_COMPILER_STATIC_OPTIONS) \
    427467          $(C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    428468usrfi-69-static$(O): usrfi-69.c chicken.h $(CHICKEN_CONFIG_H)
    429469        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    430470          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     471          $(C_COMPILER_STATIC_OPTIONS) \
    431472          $(C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    432473usrfi-4-static$(O): usrfi-4.c chicken.h $(CHICKEN_CONFIG_H)
    433474        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    434475          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     476          $(C_COMPILER_STATIC_OPTIONS) \
    435477          $(C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    436478utcp-static$(O): utcp.c chicken.h $(CHICKEN_CONFIG_H)
    437479        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    438480          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     481          $(C_COMPILER_STATIC_OPTIONS) \
    439482          $(C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    440483uutils-static$(O): uutils.c chicken.h $(CHICKEN_CONFIG_H)
    441484        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
    442485          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) \
     486          $(C_COMPILER_STATIC_OPTIONS) \
    443487          $(C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT)
    444488
     
    575619batch-driver-static$(O): batch-driver.c chicken.h $(CHICKEN_CONFIG_H)
    576620        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
     621          $(C_COMPILER_STATIC_OPTIONS) \
    577622          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT)
    578623c-backend-static$(O): c-backend.c chicken.h $(CHICKEN_CONFIG_H)
    579624        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
     625          $(C_COMPILER_STATIC_OPTIONS) \
    580626          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT)
    581627c-platform-static$(O): c-platform.c chicken.h $(CHICKEN_CONFIG_H)
    582628        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
     629          $(C_COMPILER_STATIC_OPTIONS) \
    583630          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT)
    584631chicken-static$(O): chicken.c chicken.h $(CHICKEN_CONFIG_H)
    585632        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
     633          $(C_COMPILER_STATIC_OPTIONS) \
    586634          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT)
    587635compiler-static$(O): compiler.c chicken.h $(CHICKEN_CONFIG_H)
    588636        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
     637          $(C_COMPILER_STATIC_OPTIONS) \
    589638          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT)
    590639support-static$(O): support.c chicken.h $(CHICKEN_CONFIG_H)
    591640        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
     641          $(C_COMPILER_STATIC_OPTIONS) \
    592642          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT)
    593643optimizer-static$(O): optimizer.c chicken.h $(CHICKEN_CONFIG_H)
    594644        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
     645          $(C_COMPILER_STATIC_OPTIONS) \
    595646          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT)
    596647
     
    682733$(PCRE_DIR)pcre_compile-static$(O): pcre_compile.c pcre_internal.h config.h $(CHICKEN_CONFIG_H) pcre.h ucp.h
    683734        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    684           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     735          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     736          $(C_COMPILER_STATIC_OPTIONS) \
    685737          $(C_COMPILER_PCRE_OPTIONS)
    686738$(PCRE_DIR)pcre_config-static$(O): pcre_config.c pcre_internal.h config.h $(CHICKEN_CONFIG_H) pcre.h ucp.h
    687739        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    688           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     740          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     741          $(C_COMPILER_STATIC_OPTIONS) \
    689742          $(C_COMPILER_PCRE_OPTIONS)
    690743$(PCRE_DIR)pcre_dfa_exec-static$(O): pcre_dfa_exec.c pcre_internal.h config.h $(CHICKEN_CONFIG_H) pcre.h ucp.h
    691744        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    692           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     745          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     746          $(C_COMPILER_STATIC_OPTIONS) \
    693747          $(C_COMPILER_PCRE_OPTIONS)
    694748$(PCRE_DIR)pcre_exec-static$(O): pcre_exec.c pcre_internal.h config.h $(CHICKEN_CONFIG_H) pcre.h ucp.h
    695749        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    696           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     750          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     751          $(C_COMPILER_STATIC_OPTIONS) \
    697752          $(C_COMPILER_PCRE_OPTIONS)
    698753$(PCRE_DIR)pcre_fullinfo-static$(O): pcre_fullinfo.c pcre_internal.h config.h $(CHICKEN_CONFIG_H) pcre.h ucp.h
    699754        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    700           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     755          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     756          $(C_COMPILER_STATIC_OPTIONS) \
    701757          $(C_COMPILER_PCRE_OPTIONS)
    702758$(PCRE_DIR)pcre_get-static$(O): pcre_get.c pcre_internal.h config.h $(CHICKEN_CONFIG_H) pcre.h ucp.h
    703759        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    704           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     760          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     761          $(C_COMPILER_STATIC_OPTIONS) \
    705762          $(C_COMPILER_PCRE_OPTIONS)
    706763$(PCRE_DIR)pcre_globals-static$(O): pcre_globals.c pcre_internal.h config.h $(CHICKEN_CONFIG_H) pcre.h ucp.h
    707764        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    708           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     765          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     766          $(C_COMPILER_STATIC_OPTIONS) \
    709767          $(C_COMPILER_PCRE_OPTIONS)
    710768$(PCRE_DIR)pcre_info-static$(O): pcre_info.c pcre_internal.h config.h $(CHICKEN_CONFIG_H) pcre.h ucp.h
    711769        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    712           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     770          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     771          $(C_COMPILER_STATIC_OPTIONS) \
    713772          $(C_COMPILER_PCRE_OPTIONS)
    714773$(PCRE_DIR)pcre_maketables-static$(O): pcre_maketables.c pcre_internal.h config.h $(CHICKEN_CONFIG_H) pcre.h ucp.h
    715774        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    716           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     775          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     776          $(C_COMPILER_STATIC_OPTIONS) \
    717777          $(C_COMPILER_PCRE_OPTIONS)
    718778$(PCRE_DIR)pcre_newline-static$(O): pcre_newline.c pcre_internal.h config.h $(CHICKEN_CONFIG_H) pcre.h ucp.h
    719779        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    720           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     780          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     781          $(C_COMPILER_STATIC_OPTIONS) \
    721782          $(C_COMPILER_PCRE_OPTIONS)
    722783$(PCRE_DIR)pcre_ord2utf8-static$(O): pcre_ord2utf8.c pcre_internal.h config.h $(CHICKEN_CONFIG_H) pcre.h ucp.h
    723784        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    724           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     785          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     786          $(C_COMPILER_STATIC_OPTIONS) \
    725787          $(C_COMPILER_PCRE_OPTIONS)
    726788$(PCRE_DIR)pcre_refcount-static$(O): pcre_refcount.c pcre_internal.h config.h $(CHICKEN_CONFIG_H) pcre.h ucp.h
    727789        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    728           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     790          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     791          $(C_COMPILER_STATIC_OPTIONS) \
    729792          $(C_COMPILER_PCRE_OPTIONS)
    730793$(PCRE_DIR)pcre_study-static$(O): pcre_study.c pcre_internal.h config.h $(CHICKEN_CONFIG_H) pcre.h ucp.h
    731794        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    732           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     795          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     796          $(C_COMPILER_STATIC_OPTIONS) \
    733797          $(C_COMPILER_PCRE_OPTIONS)
    734798$(PCRE_DIR)pcre_tables-static$(O): pcre_tables.c pcre_internal.h config.h $(CHICKEN_CONFIG_H) pcre.h ucp.h
    735799        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    736           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     800          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     801          $(C_COMPILER_STATIC_OPTIONS) \
    737802          $(C_COMPILER_PCRE_OPTIONS)
    738803$(PCRE_DIR)pcre_try_flipped-static$(O): pcre_try_flipped.c pcre_internal.h config.h $(CHICKEN_CONFIG_H) pcre.h ucp.h
    739804        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    740           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     805          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     806          $(C_COMPILER_STATIC_OPTIONS) \
    741807          $(C_COMPILER_PCRE_OPTIONS)
    742808$(PCRE_DIR)pcre_ucd-static$(O): pcre_ucd.c pcre_internal.h config.h $(CHICKEN_CONFIG_H) pcre.h ucp.h
    743809        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    744           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     810          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     811          $(C_COMPILER_STATIC_OPTIONS) \
    745812          $(C_COMPILER_PCRE_OPTIONS)
    746813$(PCRE_DIR)pcre_valid_utf8-static$(O): pcre_valid_utf8.c pcre_internal.h config.h $(CHICKEN_CONFIG_H) pcre.h ucp.h
    747814        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    748           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     815          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     816          $(C_COMPILER_STATIC_OPTIONS) \
    749817          $(C_COMPILER_PCRE_OPTIONS)
    750818$(PCRE_DIR)pcre_version-static$(O): pcre_version.c pcre_internal.h config.h $(CHICKEN_CONFIG_H) pcre.h ucp.h
    751819        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    752           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     820          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     821          $(C_COMPILER_STATIC_OPTIONS) \
    753822          $(C_COMPILER_PCRE_OPTIONS)
    754823$(PCRE_DIR)pcre_xclass-static$(O): pcre_xclass.c pcre_internal.h config.h $(CHICKEN_CONFIG_H) pcre.h ucp.h
    755824        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    756           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     825          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     826          $(C_COMPILER_STATIC_OPTIONS) \
    757827          $(C_COMPILER_PCRE_OPTIONS)
    758828$(PCRE_DIR)pcre_chartables-static$(O): pcre_chartables.c pcre_internal.h config.h $(CHICKEN_CONFIG_H)
    759829        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(PCRE_INCLUDES) $(C_COMPILER_COMPILE_OPTION) \
    760           $(C_COMPILER_OPTIMIZATION_OPTIONS) $(C_COMPILER_SHARED_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     830          $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT) \
     831          $(C_COMPILER_STATIC_OPTIONS) \
    761832          $(C_COMPILER_PCRE_OPTIONS)
    762833
     
    793864csi-static$(O): csi.c chicken.h $(CHICKEN_CONFIG_H)
    794865        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
     866          $(C_COMPILER_STATIC_OPTIONS) \
    795867          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT)
    796868chicken-bug$(O): chicken-bug.c chicken.h $(CHICKEN_CONFIG_H)
    797869        $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_PTABLES_OPTIONS) $(INCLUDES) \
     870          $(C_COMPILER_STATIC_OPTIONS) \
    798871          $(C_COMPILER_COMPILE_OPTION) $(C_COMPILER_OPTIMIZATION_OPTIONS) $< $(C_COMPILER_OUTPUT)
    799872
     
    10511124else
    10521125        @echo
    1053         @echo "Warning: can not run `chicken-install -u\' when DESTDIR is set"
     1126        @echo "Warning: can not run `chicken-install -update-db\' when DESTDIR is set"
    10541127        @echo
    10551128endif
     
    12491322        $(CHICKEN) $< $(CHICKEN_IMPORT_LIBRARY_OPTIONS) -output-file $@
    12501323setup-api.import.c: $(SRCDIR)setup-api.scm
    1251         $(CHICKEN) $(SRCDIR)setup-api.import.scm $(CHICKEN_IMPORT_LIBRARY_OPTIONS) -output-file $@
     1324        $(CHICKEN) $(SRCDIR)setup-api.import.scm $(CHICKEN_IMPORT_LIBRARY_OPTIONS) \
     1325          -ignore-repository -output-file $@
    12521326setup-download.import.c: $(SRCDIR)setup-download.scm
    1253         $(CHICKEN) $(SRCDIR)setup-download.import.scm $(CHICKEN_IMPORT_LIBRARY_OPTIONS) -output-file $@
     1327        $(CHICKEN) $(SRCDIR)setup-download.import.scm $(CHICKEN_IMPORT_LIBRARY_OPTIONS) \
     1328          -ignore-repository -output-file $@
    12541329
    12551330chicken.c: $(SRCDIR)chicken.scm $(SRCDIR)chicken-ffi-syntax.scm $(SRCDIR)private-namespace.scm $(SRCDIR)tweaks.scm
     
    12731348        $(CHICKEN) $< $(CHICKEN_PROGRAM_OPTIONS) -output-file $@
    12741349chicken-install.c: $(SRCDIR)chicken-install.scm setup-download.c
    1275         $(CHICKEN) $< $(CHICKEN_PROGRAM_OPTIONS) -output-file $@
     1350        $(CHICKEN) $< $(CHICKEN_PROGRAM_OPTIONS) -ignore-repository -output-file $@
    12761351chicken-uninstall.c: $(SRCDIR)chicken-uninstall.scm
    1277         $(CHICKEN) $< $(CHICKEN_PROGRAM_OPTIONS) -output-file $@
     1352        $(CHICKEN) $< $(CHICKEN_PROGRAM_OPTIONS) -ignore-repository -output-file $@
    12781353chicken-status.c: $(SRCDIR)chicken-status.scm
    1279         $(CHICKEN) $< $(CHICKEN_PROGRAM_OPTIONS) -output-file $@
     1354        $(CHICKEN) $< $(CHICKEN_PROGRAM_OPTIONS) -ignore-repository -output-file $@
    12801355csc.c: $(SRCDIR)csc.scm
    12811356        $(CHICKEN) $< $(CHICKEN_PROGRAM_OPTIONS) -output-file $@
     
    12841359
    12851360setup-api.c: $(SRCDIR)setup-api.scm
    1286         $(CHICKEN) $< $(CHICKEN_DYNAMIC_OPTIONS) -emit-import-library setup-api -output-file $@
     1361        $(CHICKEN) $< $(CHICKEN_DYNAMIC_OPTIONS) -emit-import-library setup-api \
     1362          -ignore-repository -output-file $@
    12871363setup-download.c: $(SRCDIR)setup-download.scm
    1288         $(CHICKEN) $< $(CHICKEN_DYNAMIC_OPTIONS) -emit-import-library setup-download -output-file $@
     1364        $(CHICKEN) $< $(CHICKEN_DYNAMIC_OPTIONS) -emit-import-library setup-download \
     1365          -ignore-repository -output-file $@
    12891366
    12901367# distribution files
  • chicken/trunk/setup-api.scm

    r12786 r12789  
    2727(require-library srfi-1 regex utils posix srfi-13 extras ports data-structures files)
    2828
     29; This code is partially quite messy and the API is not overly consistent,
     30; mainly because it has grown "organically" while the old chicken-setup program
     31; evolved. The code was extracted and put into this module, without much
     32; cleaning up. Nevertheless, it should work.
    2933
    3034(module setup-api
  • chicken/trunk/setup-download.scm

    r12305 r12789  
    2525
    2626
    27 (require-library extras regex posix utils setup-utils srfi-1 data-structures tcp srfi-13
     27(require-library extras regex posix utils setup-api srfi-1 data-structures tcp srfi-13
    2828                 files)
    2929
     
    3636
    3737  (import scheme chicken)
    38   (import extras regex posix utils setup-utils srfi-1 data-structures tcp
    39           srfi-13 files)
     38  (import extras regex posix utils srfi-1 data-structures tcp
     39          srfi-13 files setup-api)
    4040
    4141  (tcp-connect-timeout 10000)           ; 10 seconds
  • chicken/trunk/support.scm

    r12637 r12789  
    13061306    -require-extension NAME     require and import extension NAME
    13071307    -extension                  compile as extension (dynamic or static)
     1308    -ignore-repository          do not refer to repository for extensions
    13081309
    13091310  Obscure options:
Note: See TracChangeset for help on using the changeset viewer.