mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/mkmf.rb ($DEFLIBPATH): default library paths ($(topdir), etc)
should be the first elements of library paths list. reported by KOBAYASHI Yasuhiro [ruby-list:43225] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f9b349adb5
commit
bcb0b021e3
2 changed files with 12 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
|||
Wed Feb 28 18:23:43 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* lib/mkmf.rb ($DEFLIBPATH): default library paths ($(topdir), etc)
|
||||
should be the first elements of library paths list.
|
||||
reported by KOBAYASHI Yasuhiro [ruby-list:43225]
|
||||
|
||||
Wed Feb 28 10:33:58 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* Makefile.in, configure.in, */Makefile.sub (THREAD_MODEL): system
|
||||
|
|
11
lib/mkmf.rb
11
lib/mkmf.rb
|
@ -265,7 +265,7 @@ ensure
|
|||
log_src(src)
|
||||
end
|
||||
|
||||
def link_command(ldflags, opt="", libpath=$LIBPATH)
|
||||
def link_command(ldflags, opt="", libpath=$DEFLIBPATH|$LIBPATH)
|
||||
RbConfig::expand(TRY_LINK.dup,
|
||||
CONFIG.merge('hdrdir' => $hdrdir.quote,
|
||||
'src' => CONFTEST_C,
|
||||
|
@ -289,7 +289,7 @@ def cpp_command(outfile, opt="")
|
|||
CONFIG.merge('hdrdir' => $hdrdir.quote, 'srcdir' => $srcdir.quote))
|
||||
end
|
||||
|
||||
def libpathflag(libpath=$LIBPATH)
|
||||
def libpathflag(libpath=$DEFLIBPATH|$LIBPATH)
|
||||
libpath.map{|x|
|
||||
(x == "$(topdir)" ? LIBPATHFLAG : LIBPATHFLAG+RPATHFLAG) % x.quote
|
||||
}.join
|
||||
|
@ -1151,7 +1151,7 @@ end
|
|||
#
|
||||
def create_makefile(target, srcprefix = nil)
|
||||
$target = target
|
||||
libpath = $LIBPATH
|
||||
libpath = $DEFLIBPATH|$LIBPATH
|
||||
message "creating Makefile\n"
|
||||
rm_f "conftest*"
|
||||
if CONFIG["DLEXT"] == $OBJEXT
|
||||
|
@ -1217,7 +1217,7 @@ def create_makefile(target, srcprefix = nil)
|
|||
mfile = open("Makefile", "wb")
|
||||
mfile.print(*configuration(srcprefix))
|
||||
mfile.print "
|
||||
libpath = #{$LIBPATH.join(" ")}
|
||||
libpath = #{($DEFLIBPATH|$LIBPATH).join(" ")}
|
||||
LIBPATH = #{libpath}
|
||||
DEFFILE = #{deffile}
|
||||
|
||||
|
@ -1442,7 +1442,8 @@ def init_mkmf(config = CONFIG)
|
|||
$LIBRUBYARG = ""
|
||||
$LIBRUBYARG_STATIC = config['LIBRUBYARG_STATIC']
|
||||
$LIBRUBYARG_SHARED = config['LIBRUBYARG_SHARED']
|
||||
$LIBPATH = $extmk ? ["$(topdir)"] : CROSS_COMPILING ? [] : ["$(libdir)"]
|
||||
$DEFLIBPATH = $extmk ? ["$(topdir)"] : CROSS_COMPILING ? [] : ["$(libdir)"]
|
||||
$LIBPATH = []
|
||||
$INSTALLFILES = nil
|
||||
|
||||
$objs = nil
|
||||
|
|
Loading…
Reference in a new issue