X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bin%2Fautomake.in;h=40b31814bdfa2c810e77a4860725b07137aa191d;hb=9892eb7823b3fd0e552ab22b63f58d947e9de584;hp=24ff2a6d6e215e707f8d810832a7b7bd6349ea6d;hpb=649c03b464cf55f50e696ebea482c65339ff4832;p=platform%2Fupstream%2Fautomake.git diff --git a/bin/automake.in b/bin/automake.in index 24ff2a6..40b3181 100644 --- a/bin/automake.in +++ b/bin/automake.in @@ -632,6 +632,7 @@ register_language ('name' => 'c', 'linker' => 'LINK', 'link' => '$(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@', 'compile_flag' => '-c', + 'output_flag' => '-o', 'libtool_tag' => 'CC', 'extensions' => ['.c']); @@ -1313,14 +1314,6 @@ sub handle_languages () if (((! option 'no-dependencies') && $lang->autodep ne 'no') || defined $lang->compile) { - # Some C compilers don't support -c -o. Use it only if really - # needed. - my $output_flag = $lang->output_flag || ''; - $output_flag = '-o' - if (! $output_flag - && $lang->name eq 'c' - && option 'subdir-objects'); - # Compute a possible derived extension. # This is not used by depend2.am. my $der_ext = ($lang->output_extensions->($ext))[0]; @@ -1364,7 +1357,7 @@ sub handle_languages () COMPILE => '$(' . $lang->compiler . ')', LTCOMPILE => '$(LT' . $lang->compiler . ')', - -o => $output_flag, + -o => $lang->output_flag, SUBDIROBJ => !! option 'subdir-objects'); }