$OpenBSD: patch-src_bootstrap_lib_rs,v 1.2 2017/03/27 12:35:31 danj Exp $
Let us compilation choice to be honored.
--- src/bootstrap/lib.rs.orig	Fri Mar 10 23:55:21 2017
+++ src/bootstrap/lib.rs	Sun Mar 12 07:15:33 2017
@@ -822,7 +822,6 @@ impl Build {
         // gcc-rs because the build scripts will determine that for themselves.
         let mut base = self.cc[target].0.args().iter()
                            .map(|s| s.to_string_lossy().into_owned())
-                           .filter(|s| !s.starts_with("-O") && !s.starts_with("/O"))
                            .collect::<Vec<_>>();
 
         // If we're compiling on OSX then we add a few unconditional flags
