ruby-changes:21877
From: nobu <ko1@a...>
Date: Fri, 2 Dec 2011 11:30:50 +0900 (JST)
Subject: [ruby-changes:21877] nobu:r33926 (trunk): * configure.in: use $linker_flag for LDFLAGS option which is not
nobu 2011-12-02 11:30:38 +0900 (Fri, 02 Dec 2011) New Revision: 33926 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33926 Log: * configure.in: use $linker_flag for LDFLAGS option which is not limited to particular platforms. [ruby-core:41438] [Bug#5697] Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 33925) +++ configure.in (revision 33926) @@ -2346,9 +2346,9 @@ [freebsd*|dragonfly*], [], [ if test "$GCC" = yes; then - RUBY_TRY_LDFLAGS([-Wl,--no-undefined], [no_undefined=yes], [no_undefined=no]) + RUBY_TRY_LDFLAGS([${linker_flag}--no-undefined], [no_undefined=yes], [no_undefined=no]) if test "no_undefined" = yes; then - RUBY_APPEND_OPTION(EXTLDFLAGS, [-Wl,--no-undefined]) + RUBY_APPEND_OPTION(EXTLDFLAGS, [${linker_flag}--no-undefined]) fi fi ]) @@ -2441,7 +2441,7 @@ # enable PIE if possible if test "$GCC" = yes; then RUBY_TRY_CFLAGS(-fPIE, [RUBY_APPEND_OPTION(XCFLAGS, -fPIE) - RUBY_APPEND_OPTION(XLDFLAGS, -pie)]) + RUBY_APPEND_OPTION(XLDFLAGS, ${linker_flag}-pie)]) fi ]) if test "$enable_rpath" = yes; then Index: ChangeLog =================================================================== --- ChangeLog (revision 33925) +++ ChangeLog (revision 33926) @@ -1,3 +1,8 @@ +Fri Dec 2 11:30:34 2011 Nobuyoshi Nakada <nobu@r...> + + * configure.in: use $linker_flag for LDFLAGS option which is not + limited to particular platforms. [ruby-core:41438] [Bug#5697] + Thu Dec 1 23:21:58 2011 CHIKANAGA Tomoyuki <nagachika00@g...> * thread_pthread.c (thread_timer): call prctl(PR_SET_NAME) only if -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/