diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-26 19:59:13 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-26 19:59:13 +0000 |
commit | 01a64885c3fc6a3fbf03e6565932eb36f697670a (patch) | |
tree | 72ce55d2813e162a64b9be7ff5751c65c5bc4700 /configure.in | |
parent | b6b8cc01a5bd3d72e3824c915fcbb913d82334d8 (diff) | |
download | ruby-01a64885c3fc6a3fbf03e6565932eb36f697670a.tar.gz |
* configure.in (--no-undefined): r33840 breaks FreeBSD with gcc47.
FreeBSD's environ is in /usr/libexec/ld-elf.so.1, so it will be
false negative.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 4b7fb581c9..e051cb6cfe 100644 --- a/configure.in +++ b/configure.in @@ -2267,9 +2267,13 @@ AS_CASE("$enable_shared", [yes], [ SOLIBS='$(LIBS)' fi - if test "$GCC" = yes; then - RUBY_TRY_LDFLAGS([-Xlinker --no-undefined], RUBY_APPEND_OPTION(EXTLDFLAGS, [-Xlinker --no-undefined])) - fi + AS_CASE(["$target_os"], + [freebsd*], , + [ + if test "$GCC" = yes; then + RUBY_TRY_LDFLAGS([-Xlinker --no-undefined], RUBY_APPEND_OPTION(EXTLDFLAGS, [-Xlinker --no-undefined])) + fi + ]) AS_CASE(["$target_os"], [sunos4*], [ |