]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/perl/UCW/Configure/C.pm
Opt: strdup -> xstrdup
[libucw.git] / ucw / perl / UCW / Configure / C.pm
index 223f282cef7bbfc7f5315f9b2c5a65e5fe908aff..0eca1f98b92c08a00ad1ffd44ad0ec395ab84561 100644 (file)
@@ -1,5 +1,5 @@
 # UCW Library configuration system: OS and C compiler
-# (c) 2005--2010 Martin Mares <mj@ucw.cz>
+# (c) 2005--2012 Martin Mares <mj@ucw.cz>
 # (c) 2006 Robert Spalek <robert@ucw.cz>
 # (c) 2008 Michal Vaner <vorner@ucw.cz>
 
@@ -108,7 +108,7 @@ if ($arch =~ /^(i386|amd64)$/ && Get("CONFIG_EXACT_CPU")) {
 Set("COPT2" => '-O3');
 
 # Warnings
-Set("CWARNS" => '-Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Winline');
+Set("CWARNS" => '-Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes');
 Set("CWARNS_OFF" => '');
 
 # Linker flags
@@ -143,9 +143,6 @@ if ($gccver == 3000) {
        Append("CWARNS" => "-Wundef -Wredundant-decls -Wno-pointer-sign -Wdisabled-optimization -Wno-missing-field-initializers");
        Append("CWARNS_OFF" => "-Wno-pointer-sign");
        Append("COPT" => "-finline-limit=5000 --param large-function-insns=5000 --param inline-unit-growth=200 --param large-function-growth=400");
-       if ($gccver >= 4002) {
-               Append("COPT" => "-fgnu89-inline");
-       }
 } else {
        Warn "Don't know anything about this GCC version, using default switches.\n";
 }