Changeset 1518 in kBuild
- Timestamp:
- Apr 10, 2008 11:40:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/main.c
r1503 r1518 1650 1650 #ifdef KMK 1651 1651 (void) define_variable ("KMK_OVERRIDES", 13, 1652 "${-*-command-variables-*-}", o_env, 1); 1652 1653 #else 1653 1654 (void) define_variable ("MAKEOVERRIDES", 13, 1654 #endif1655 1655 "${-*-command-variables-*-}", o_env, 1); 1656 #endif 1656 1657 } 1657 1658 … … 3308 3309 #ifdef KMK 3309 3310 v = define_variable ("KMK_FLAGS", 9, 3311 /* If there are switches, omit the leading dash 3312 unless it is a single long option with two 3313 leading dashes. */ 3314 &flagstring[(flagstring[0] == '-' 3315 && flagstring[1] != '-') 3316 ? 1 : 0], 3317 /* This used to use o_env, but that lost when a 3318 makefile defined MAKEFLAGS. Makefiles set 3319 MAKEFLAGS to add switches, but we still want 3320 to redefine its value with the full set of 3321 switches. Of course, an override or command 3322 definition will still take precedence. */ 3323 o_file, 1); 3310 3324 #else 3311 3325 v = define_variable ("MAKEFLAGS", 9, 3312 #endif3313 3326 /* If there are switches, omit the leading dash 3314 3327 unless it is a single long option with two … … 3324 3337 definition will still take precedence. */ 3325 3338 o_file, 1); 3339 #endif 3326 3340 if (! all) 3327 3341 /* The first time we are called, set MAKEFLAGS to always be exported.
Note:
See TracChangeset
for help on using the changeset viewer.