| Index: chromium/scripts/munge_config_posix_memalign.sh
|
| diff --git a/chromium/scripts/munge_config_posix_memalign.sh b/chromium/scripts/munge_config_posix_memalign.sh
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..b558cc2d35959c5c04d44a1d6f87ffcab9412ef9
|
| --- /dev/null
|
| +++ b/chromium/scripts/munge_config_posix_memalign.sh
|
| @@ -0,0 +1,21 @@
|
| +# Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +# This script munges the config.h to mark posix_memalign unavailable so
|
| +# that the ffmpeg library can be linked against stdlib for
|
| +# MACOSX_DEPLOYMENT_TARGET < 10.7
|
| +# This is because we are building for older systems which did not have
|
| +# this functionality.
|
| +#
|
| +# Warning: in theory we should also disable this on config.asm but it is
|
| +# not yet used there.
|
| +set -e
|
| +
|
| +sed -i.orig -e '
|
| +/HAVE_POSIX_MEMALIGN/ {
|
| +c\
|
| +#define HAVE_POSIX_MEMALIGN 0
|
| +}
|
| +' \
|
| +$1
|
|
|