Changeset 550


Ignore:
Timestamp:
02/14/09 00:04:33 (3 years ago)
Author:
mooneer
Message:

Forgot to add library_ldflags and file_cflags to command lines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • interpreter/trunk/modules/System/package/builder.kt

    r549 r550  
    7676) 
    7777[ 
     78    property cflags; 
     79    decide [ 
     80        (options.file_cflags[lib_file] is System.null) [ cflags = ""; ], 
     81        true [ cflags = options.file_cflags[lib_file]; ] 
     82    ]; 
     83     
    7884    decide [ 
    7985        (not ((make System.regex("\\.kt$"))|match(lib_file) is System.null)) 
     
    8793        [ 
    8894            # C++ file. 
    89             run_command_with_echo("%s %s -c %s"|format([ 
     95            run_command_with_echo("%s %s %s -c %s"|format([ 
    9096                System.compile_options.build_cplusplus, 
    9197                System.compile_options.build_cxxflags, 
     98                cflags, 
    9299                lib_file])); 
    93100        ], 
    94101        true [ 
    95102            # C file. 
    96             run_command_with_echo("%s %s -c %s"|format([ 
     103            run_command_with_echo("%s %s %s -c %s"|format([ 
    97104                System.compile_options.build_cc, 
    98105                System.compile_options.build_cxxflags, 
     106                cflags, 
    99107                lib_file])); 
    100108        ] 
     
    161169     
    162170    # Link library. 
     171    property ldflags; 
     172    decide [ 
     173        (options.library_ldflags[lib] is System.null) [ ldflags = ""; ], 
     174        true [ ldflags = options.library_ldflags[lib]; ] 
     175    ]; 
    163176    decide [ 
    164177        (compile_outputs != "") [ 
    165             run_command_with_echo("%s %s %s -o dist/%s %s"|format([ 
     178            run_command_with_echo("%s %s %s %s -o dist/%s %s"|format([ 
    166179                System.compile_options.build_cc, 
    167180                System.compile_options.build_ldflags, 
    168181                System.compile_options.build_dylib_flags, 
     182                ldflags, 
    169183                ((make System.regex("\\."))|replace(lib, "/") + System.compile_options.build_dylib_extension), 
    170184                compile_outputs 
Note: See TracChangeset for help on using the changeset viewer.