summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index dde0d77d..e62aee60 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2028,13 +2028,6 @@ main (int argc, char **argv, char **envp)
/* Define the initial list of suffixes for old-style rules. */
set_default_suffixes ();
- /* Define the file rules for the built-in suffix rules. These will later
- be converted into pattern rules. We used to do this in
- install_default_implicit_rules, but since that happens after reading
- makefiles, it results in the built-in pattern rules taking precedence
- over makefile-specified suffix rules, which is wrong. */
- install_default_suffix_rules ();
-
/* Define some internal and special variables. */
define_automatic_variables ();
@@ -2280,6 +2273,11 @@ main (int argc, char **argv, char **envp)
define_makeflags (0);
+ /* Define the file rules for the built-in suffix rules. These will later
+ be converted into pattern rules. */
+
+ install_default_suffix_rules ();
+
/* Make each 'struct goaldep' point at the 'struct file' for the file
depended on. Also do magic for special targets. */