OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # This script does some preparations before build of instrumented udev. | 6 # This script does some preparations before build of instrumented udev. |
7 | 7 |
8 # Required on Trusty due to autoconf version mismatch. | 8 # Required on Trusty due to autoconf version mismatch. |
9 autoreconf --force | 9 autoreconf --force |
10 | 10 |
11 # Do not warn about undefined sanitizer symbols in object files. | 11 # Do not warn about undefined sanitizer symbols in object files. |
12 sed -i "s/\(-Wl,--no-undefined\|-Wl,-z,defs\)//g" ./configure | 12 sed -i "s/\(-Wl,--no-undefined\|-Wl,-z,defs\)//g" ./configure |
13 | 13 |
14 # Do not fortify source (doesn't work with MSan). | 14 # Do not fortify source (doesn't work with MSan). |
15 sed -i "s/-D_FORTIFY_SOURCE=2/-U_FORTIFY_SOURCE/g" ./configure | 15 sed -i "s/-D_FORTIFY_SOURCE=2/-U_FORTIFY_SOURCE/g" ./configure |
OLD | NEW |