summaryrefslogtreecommitdiff
path: root/lib/mkmf.rb
AgeCommit message (Collapse)Author
2012-07-09mkmf.rb: add TARGET_NAMEnobu
* configure.in (DLDFLAGS): use TARGET_ENTRY to specify an entry point instead of TARGET which may contain non-identifer characters. * lib/mkmf.rb (create_makefile): add TARGET_NAME which is the first part consists of only word characters. [ruby-core:46248][Bug #6709] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-12* lib/mkmf.rb: add dummy clean-static target to prevent errors for thenaruse
case real clean-static target doesn't exist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-08* README.EXT (prepare extconf.rb): Added note to see MakeMakefile fordrbrain
documentation of extconf.rb functions. Patch by Zachary Scott. [ruby-trunk - Feature #6522] * README.EXT (Appendix C): Removed in favor of MakeMakefile. Patch by Zachary Scott. * lib/mkmf.rb: Merged documentation from README.EXT Appendix C. Patch by Zachary Scott. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-20ext/extmk.rb: workaround for -framework optionnobu
* ext/extmk.rb (extmake): assume non-option words are arguments. workaround for -framework option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-18[ruby-dev:45650]nobu
* lib/mkmf.rb (MakeMakefile#configuration): keep space at end of OUTFLAG and COUTFLAG. [ruby-dev:45650] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-17fix static-linked-extnobu
* lib/mkmf.rb (MakeMakefile#have_framework): combine -framework option and its argument with an equal sign not to be separated in merge_libs. * ext/tk/extconf.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-16Supports static linking of extensions and encodings again.yugui
Fixes --with-static-linked-ext. Patch by Google Inc. [ruby-core:45073]. * Makefile.in (ENCOBJS, EXTOBJS): New variables to specify static linked libraries. Also reintroduces extinit.o, introduces encinit.o introduces encinit.o * common.mk: Builds static libraries rather than shared objects if specified. * configure.in (LD): new substitution. Avoids PIE if s * enc/depend: Supports static linked libraries (libencs, libenc, libtrans): New target. * enc/encinit.c.erb: new template to generate the initialization of statically linked encodings. * enc/make_encmake.rb (--module): new flag to specify whether static or dynamic. * transcode_data.h (TRANS_INIT): New macro to get rid of the name collision of encoding initializers and transcoder initializers. * ext/extmk.rb: Fixes the behavior on $extstatic is true. * lib/mkmf.rb (clean-static): new target to clean up static linked libraries. * ruby.c (process_options): New initializes statically linked encodings here. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-09lib/mkmf.rb: check pkg-config resultnobu
* lib/mkmf.rb (MakeMakefile#pkg_config): check if libs resulted from pkg-config works actually. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-01* revert r35510 and r35511 which caused removing the headers everytime.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-01extconf.h dependencynobu
* lib/mkmf.rb (MakeMakefile#depend_rules): deal with extconf.h dependency. just remove it and bail out right now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-22TRY_LINK needs EXEEXTnobu
* lib/mkmf.rb (TRY_LINK): need EXEEXT for cross-compiling. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-22workaround for mingwnobu
* lib/mkmf.rb (try_link0, try_compile, try_cpp): check if the target file get created actually. workaround for the case that the exit status of a cygwin program seems lost on mingw. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-22remove conftest filesnobu
* lib/mkmf.rb (try_constant): remove conftest files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-27* lib/mkmf.rb (try_cppflags, try_cflags, try_ldflags): replace thenobu
target flags if the given flag is accepted. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-17* lib/mkmf.rb (create_header): log the content of header.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-12* lib/mkmf.rb: fix r33904 and revert r33905. initialize globalnobu
variables with init_mkmf before initializing constants. [ruby-dev:45124] [Bug #5879] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-11* lib/mkmf.rb: verbose-mode can use by RM, RMDIRS, etc.kazu
(e.g. make V=1 realclean) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-14* common.mk,Makefile.in,win32/Makefile.sub (ECHO1): move platformusa
specific hack from common.mk to Makefile.in (and win32/Makefile.sub). [Bug #5711] * lib/mkmf.rb: we can generate Makefile as we like. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-02* Makefile.in (CFLAGS): append ARCH_FLAG.nobu
* configure.in (ARCH_FLAG): exclude from CFLAGS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-01* lib/mkmf.rb (MakeMakefile#try_func): fix broken patch at r33834.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-30Fix r33904.naruse
It breaks following tests if RUBYOPT=-w * test_class_build(TestGemExtExtConfBuilder) * test_class_build_rbconfig_make_prog(TestGemExtExtConfBuilder) * test_class_build_env_make(TestGemExtExtConfBuilder) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-30* lib/mkmf.rb: Use MakeMakefile's rm_f to avoid conflict with Rake ordrbrain
FileUtils. * test/ruby/test_module.rb: Hide MakeMakefile's inclusion in Object git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-29Don't break tests.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-29* lib/mkmf.rb: Fix indentations of constants at end of module.drbrain
Document some constants. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-28* lib/mkmf.rb: Wrap comments to 78 columns and clean up formatting.drbrain
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-28* lib/mkmf.rb: Wrap mkmf.rb in module MakeMakefile to clean up Objectdrbrain
documentation. [Ruby 1.9 - Feature #5658] * ext/extmk.rb: Use MakeMakefile::CONFIG instead of Object::CONFIG * test/mkmf/base.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-24* lib/mkmf.rb: get rid of warnings of mkmf.rb if -Wmissing-declarationskosaki
and/or -Wold-style-definition warnings if specified. Patch by Nikolai Weibull. Thank you! [Bug #5459] [ruby-core:40200] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-20* ext/extmk.rb (extract_makefile, extmake): regenerate makefielsnobu
if globbed source file list is changed. * lib/mkmf.rb (create_makefile): store ORIG_SRCS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-13* lib/mkmf.rb (checking_for): should not modify the result.nobu
* lib/mkmf.rb (have_struct_member): accept compiler opttions. * lib/mkmf.rb (convertible_int): add restricted support of struct member, and TYPEOF_ macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-11* lib/mkmf.rb (have_library, find_library, have_func): allownobu
arguments of function to be checked. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-10* lib/mkmf.rb (try_func): ignore empty opts.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-10* lib/mkmf.rb (have_library, have_func, have_var, have_header):nobu
add compiler option parameter. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-08* lib/mkmf.rb (cpp_command): remove multiple -arch flags since cppnobu
cannot work. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-05* ext/pathname/lib/pathname.rb, ext/tk/lib/multi-tk.rb,ktsj
ext/tk/sample/demos-en/widget, lib/benchmark.rb, lib/irb/cmd/fork.rb, lib/mkmf.rb, lib/net/ftp.rb, lib/net/smtp.rb, lib/open3.rb, lib/pstore.rb, lib/rexml/element.rb, lib/rexml/light/node.rb, lib/rinda/tuplespace.rb, lib/rss/maker/base.rb, lib/rss/maker/entry.rb, lib/scanf.rb, lib/set.rb, lib/shell.rb, lib/shell/command-processor.rb, lib/shell/process-controller.rb, lib/shell/system-command.rb, lib/uri/common.rb: remove unused block arguments to avoid creating Proc objects. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-02* lib/mkmf.rb (have_framework): try as Objective-C.nobu
https://twitter.com/nagachika/status/120294447660539904 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-11* lib/mkmf.rb (link_command): use LIBRUBYARG in rbconfig fornobu
unbundled extensions. [ruby-core:38802] [Bug #5147] * lib/mkmf.rb (init_mkmf): revert r32902. [ruby-core:38903] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-10* lib/mkmf.rb (init_mkmf): set $LIBRUBYARG regardless of sharednobu
option. [ruby-core:38802] [Bug #5147] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-03* lib/mkmf.rb (link_command): use static library only for bundlednobu
extensions. [Bug #5147] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-31Forward-ports r32778 from branches/ruby_1_9_3 to trunk.yugui
-- * lib/mkmf.rb (configuration:ECHO1): Same as the recent fix in common.mk. ":" in a make variable replacement cause a syntax error with /usr/ccs/bin/make on Solaris. Uses $(NULLCMD) instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11* lib/mkmf.rb: should quote arch_hdrdir and libpath for the casenobu
installed prefix contains spaces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-19* lib: revert r31635-r31638 and untabify with expand(1).nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-18 * lib/mkmf.rb: Fix indentation of EOM for heredoc.drbrain
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-18 * lib: Convert tabs to spaces for ruby files perdrbrain
http://redmine.ruby-lang.org/projects/ruby/wiki/DeveloperHowto#coding-style Patch by Steve Klabnik [Ruby 1.9 - Bug #4730] Patch by Jason Dew [Ruby 1.9 - Feature #4718] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-15* remove trailing spaces.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-12* lib/mkmf.rb (Logging.postpone): copy only when tmporary logfileusa
exists. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-11 * object.c (rb_obj_equal): Add documentation. Patch by Vincent Batts.drbrain
[Ruby 1.9 - Bug #4664] * lib/rexml: ditto * lib/mkmf.rb: ditto * ext/socket/lib/socket.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-11* lib/mkmf.rb (find_executable0): should exclude directories.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-15* configure.in (warnflags): add -Werror=implicit-function-declarationnobu
if available. * lib/mkmf.rb (init_mkmf): ignore warnings in mkmf tests. * test/mkmf/base.rb (setup, teardown): restore config values. * test/mkmf/test_flags.rb: split from test_find_executable.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-07* lib/mkmf.rb (configuration): backref needs to capture.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-06* lib/mkmf.rb (create_makefile): ignore rest from first dot fromusa
TARGET to generate init function name. this is followup of r30464. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e