#!/bin/bash

set -ex

# NetworkManager requires the -flto-partition=none flag to be used when lto
# is enabled, but clang does not support this flag.  Workaround this by
# changing the -flto-partition check from an error to a warning.
sed -i 's/AC_MSG_ERROR(\[Link/AC_MSG_WARN([Link/g' m4/compiler_options.m4
