1
0

flags.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf
  2. index 66bc81d..2364633 100644
  3. --- a/Configurations/10-main.conf
  4. +++ b/Configurations/10-main.conf
  5. @@ -1302,7 +1302,7 @@ my %targets = (
  6. inherit_from => [ "BASE_Windows" ],
  7. template => 1,
  8. CC => "cl",
  9. - CPP => '"$(CC)" /EP /C',
  10. + CPP => '$(CC) /EP /C',
  11. CFLAGS => "/W3 /wd4090 /nologo",
  12. coutflag => "/Fo",
  13. LD => "link",
  14. diff --git a/Configure b/Configure
  15. index 8b234f6..e031768 100644
  16. --- a/Configure
  17. +++ b/Configure
  18. @@ -680,7 +680,7 @@ my $list_separator_re =
  19. # (we supported those before the change to "make variable" support.
  20. my %user = (
  21. AR => env('AR'),
  22. - ARFLAGS => [],
  23. + ARFLAGS => [ env('ARFLAGS') || () ],
  24. AS => undef,
  25. ASFLAGS => [],
  26. CC => env('CC'),
  27. @@ -693,7 +693,7 @@ my %user = (
  28. CPPINCLUDES => [], # Alternative for -I
  29. CROSS_COMPILE => env('CROSS_COMPILE'),
  30. HASHBANGPERL=> env('HASHBANGPERL') || env('PERL'),
  31. - LD => undef,
  32. + LD => env('LD'),
  33. LDFLAGS => [ env('LDFLAGS') || () ], # -L, -Wl,
  34. LDLIBS => [ env('LDLIBS') || () ], # -l
  35. MT => undef,