ruby-changes:21805
From: naruse <ko1@a...>
Date: Sun, 27 Nov 2011 04:59:25 +0900 (JST)
Subject: [ruby-changes:21805] naruse:r33854 (trunk): * configure.in (--no-undefined): r33840 breaks FreeBSD with gcc47.
naruse 2011-11-27 04:59:13 +0900 (Sun, 27 Nov 2011) New Revision: 33854 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33854 Log: * 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. Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 33853) +++ configure.in (revision 33854) @@ -2267,9 +2267,13 @@ 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*], [ Index: ChangeLog =================================================================== --- ChangeLog (revision 33853) +++ ChangeLog (revision 33854) @@ -1,3 +1,9 @@ +Sun Nov 27 04:57:11 2011 NARUSE, Yui <naruse@r...> + + * 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. + Sun Nov 27 04:55:45 2011 NARUSE, Yui <naruse@r...> * lib/net/http.rb (Net::HTTP::SSL_IVNAMES): rerefix 33701. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/