extconf.rb: mingw32
* ext/psych/extconf.rb: mingw32 also needs macros for win32, not only mswin32. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d8da0faf23
commit
082a2716cc
@ -1,4 +1,7 @@
|
|||||||
Wed Nov 28 21:21:16 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Wed Nov 28 21:22:44 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/psych/extconf.rb: mingw32 also needs macros for win32, not
|
||||||
|
only mswin32.
|
||||||
|
|
||||||
* ext/psych/extconf.rb: compile sources in the source directory
|
* ext/psych/extconf.rb: compile sources in the source directory
|
||||||
without copying by using VPATH.
|
without copying by using VPATH.
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# -*- coding: us-ascii -*-
|
||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
|
|
||||||
@ -13,8 +14,8 @@ unless find_header('yaml.h') && find_library('yaml', 'yaml_get_version')
|
|||||||
|
|
||||||
$srcs = Dir.glob("#{$srcdir}/{,yaml/}*.c").map {|n| File.basename(n)}
|
$srcs = Dir.glob("#{$srcdir}/{,yaml/}*.c").map {|n| File.basename(n)}
|
||||||
|
|
||||||
if $mswin
|
if have_macro("_WIN32")
|
||||||
$CFLAGS += " -DYAML_DECLARE_STATIC -DHAVE_CONFIG_H"
|
$CPPFLAGS << " -DYAML_DECLARE_STATIC -DHAVE_CONFIG_H"
|
||||||
end
|
end
|
||||||
|
|
||||||
have_header 'dlfcn.h'
|
have_header 'dlfcn.h'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user