configure.in: Info.plist workaround

* configure.in: workaround for Info.plist to get rid of `dsymutil`
  crash by wrong files in parent directories.
  [ruby-core:62594] [Bug #9840]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-05-21 02:42:33 +00:00
Родитель 7bf10e8787
Коммит 003710957b
2 изменённых файлов: 15 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Wed May 21 11:42:31 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in: workaround for Info.plist to get rid of `dsymutil`
crash by wrong files in parent directories.
[ruby-core:62594] [Bug #9840]
Tue May 20 20:57:34 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* test/ruby/test_dir.rb (test_glob): added testcase of double

Просмотреть файл

@ -691,13 +691,22 @@ RUBY_WERROR_FLAG([
]
)
AC_MSG_CHECKING([whether LDFLAGS is valid])
{
mkdir tmp.$$.try_link &&
cd tmp.$$.try_link &&
cp ../confdefs.h . &&
echo '<?xml?><plist><dict><key>CFBundleIdentifier</key><string></string></dict></plist>' > Info.plist &&
:
} || AC_MSG_ERROR([faild to make temporary directory])
AC_TRY_LINK([], [],
[AC_MSG_RESULT(yes)],
[
cd .. && rm -fr tmp.$$.try_link
AC_MSG_RESULT(no)
AC_MSG_ERROR([something wrong with LDFLAGS="$LDFLAGS"])
]
)
cd .. && rm -fr tmp.$$.try_link
])
AC_DEFUN(RUBY_TRY_CFLAGS, [