Граф коммитов

845 Коммитов

Автор SHA1 Сообщение Дата
nobu 9bf9b3ef95 * process.c (obj2uid, obj2gid): allow strings as input user/group id.
[ruby-core:40923][Feature #5610]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-28 07:40:02 +00:00
nobu 61dc4a8dbc * configure.in (verconf.h): separate load path specific stuff from
config.h.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-27 13:44:25 +00:00
nobu 6d8580fe25 * configure.in (Makefile): get rid of confliction with -j.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-23 00:56:46 +00:00
naruse 4725c9880d Revert "* configure.in (Makefile): get rid of confliction with -j."
This reverts commit r35104 because it breaks build on FreeBSD.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-22 22:52:05 +00:00
nobu 9accaad5c4 * configure.in (Makefile): add missing test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-22 06:04:09 +00:00
nobu cd71db0ad6 * configure.in (Makefile): check with svn info, since svn 1.7 doesn't
have .svn under descendent directories.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-22 05:59:48 +00:00
nobu 11c57111f9 * configure.in (Makefile): get rid of confliction with -j.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-22 05:59:45 +00:00
nobu 5c9d7c54ab * configure.in (ruby_pc): make configurable. [Bug #6051]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-02 21:57:16 +00:00
nobu 23008fcc2e define PLATFORM_DIR if needed
* Makefile.in, configure.in (PLATFORM_DIR): define if needed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-29 04:07:06 +00:00
shirosaki 4b1e9f0c47 * Makefile.in (PLATFORM_DIR): add a variable for `win32` directory.
* Makefile.in (clean-platform): add new target.
  It cleans `win32` directory.

* common.mk (clean): add a dependency for `win32` directory.
* common.mk (distclean): ditto.
* common.mk (distclean-platform): add new target.
  It cleans `win32` directory.
* common.mk ($(PLATFORM_D)): add new target to make `win32` directory.
* common.mk (win32/win32.$(OBJEXT)): move win32.o into `win32`
  directory.
* common.mk (win32/file.$(OBJEXT)): add new target for win32/file.c.

* configure.in: move win32.o into `win32` directory and add
  win32/file.o to MISSING.

* file.c (file_load_ok, rb_file_load_ok): replace static
  file_load_ok() with public rb_file_load_ok().
  It's to link Windows implementation in win32/file.c.
* file.c (rb_find_file_ext_safe): ditto.
* file.c (rb_find_file_safe): ditto.

* win32/file.c (rb_file_load_ok): new file. Add Windows specific
  optimized implementation of rb_file_load_ok(). We created a
  separated file to avoid too many #ifdef macro which is unreadable.

* win32/Makefile.sub (PLATFORM_DIR): add a variable for `win32`
  directory.
* win32/Makefile.sub (MISSING): move win32.obj into `win32`
  directory and add win32/file.obj to MISSING.
* win32/Makefile.sub (MAKEDIRS): replace MINIRUBY with BASERUBY.
  It's because miniruby doesn't exist when making `win32` directory.
* win32/Makefile.sub (clean-platform): add new target to clean `win32`
  directory.
* win32/Makefile.sub ({$(srcdir)}.c{}.obj): make it not match
  win32/file.c to build properly.
* win32/Makefile.sub (win32/win32.$(OBJEXT)): move win32.obj into
 `win32` directory.

  Patch created with Luis Lavena.
  [ruby-core:42480] [Feature #5999]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-28 15:51:25 +00:00
nobu 1c85a648fe * configure.in (debugflags): check if -ggdb is accepted.
[ruby-core:42875][Bug #6080]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-28 02:44:52 +00:00
nobu d573446841 * configure.in (__builtin_unreachable): check for clang.
[ruby-core:42849]
* include/ruby/ruby.h (UNREACHABLE): fallback definition.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-24 06:49:09 +00:00
naruse a23f06358e * configure.in: allow llvm-gcc because it work fine with r34278.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 03:22:08 +00:00
nobu 032d0a4cf7 * configure.in: check if -fstack-protector is really available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-20 06:50:36 +00:00
nari a42cc41ba1 * configure.in (HEAP_ALIGN_LOG): HEAP_ALIGN_LOG should be page
size in OpenBSD. [ruby-core:42158][Bug #5901]

* gc.c : avoid to redefine.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-31 12:36:50 +00:00
nobu e58d77bdda * configure.in (SPT_TYPE): enable as SPT_REUSEARGV on Darwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-17 08:18:46 +00:00
nobu eec5d2014f * confiugre.in (setproctitle): removed dupcated checks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-17 08:10:00 +00:00
naruse 411fa36c73 * configure.in: check posix_memalign(3) and menalign(3).
* gc.c (aligned_malloc): use configure's result instead of
  _POSIX_C_SOURCE and _XOPEN_SOURCE because they can't be used
  to check availability at least on FreeBSD.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-07 15:13:37 +00:00
nagachika 3ba49c9ebb * configure.in: always define CANONICALIZATION_FOR_MATHN.
[ruby-dev:45100] [Bug #5852]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-06 15:52:44 +00:00
luislavena 60b99d05c6 * configure.in: change --with-ntver to --with-winnt-ver to be more
descriptive in the context. [ruby-core:41794]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-24 15:05:33 +00:00
luislavena 3cbf3e207d * configure.in: add --with-ntver option to match win32/configure.bat
functionality. Set 0x0501 as default. [ruby-core:35010]
  [ruby-core:35035]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-24 14:24:32 +00:00
nobu f2747b5782 * configure.in (RUBY_WERROR_FLAG): append all warning flags which
are enabled to compile, so that printf format modifiers properly
  fail.  [ruby-core:41351] [Bug #5679]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-08 03:11:11 +00:00
nobu aecd98a212 * configure.in (rpath): fix typo in the help string. a patch from
Yuji Yamano <yyamano AT kt.rim.or.jp> in [ruby-list:48568].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-07 10:04:26 +00:00
nobu 53df70d92b * Makefile.in (CFLAGS): append ARCH_FLAG.
* 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-02 22:17:34 +00:00
nobu 2748f58dce * configure.in (UNIVERSAL_INTS): include short int. fix for
test/mkmf.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-02 22:14:30 +00:00
nobu 5fce7630c7 * configure.in (RUBY_TRY_CFLAGS, RUBY_TRY_LDFLAGS): more verbose messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-02 06:43:57 +00:00
nobu 0755d415bb * configure.in: check whether -pie or -Wl,-pie is valid as
LDFLAGS.  [ruby-core:41438] [Bug#5697]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-02 06:41:27 +00:00
nobu 55cae88340 * configure.in: use $linker_flag for LDFLAGS option which is not
limited to particular platforms.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-02 06:18:21 +00:00
naruse 9b69817ac0 Revert r33926 "* configure.in: use $linker_flag for LDFLAGS option which is not"
This breaks build process of Linux and FreeBSD.
It may depend the version of gcc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-02 04:02:20 +00:00
nobu 6ec1902a2d * configure.in: use $linker_flag for LDFLAGS option which is not
limited to particular platforms.  [ruby-core:41438] [Bug#5697]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-02 02:30:38 +00:00
nobu b2e137c81e * configure.in (LDFLAGS): -fstack-protector is always needed to
link static library created with it.  [ruby-core:41387]
  [Bug#5686]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-01 01:32:02 +00:00
kosaki 0d0bd1642a * configure.in: add sys/prctl.h test.
* thread_pthread.c (thread_timer): call prctl(PR_SET_NAME) to change
  thread name. It may help to debug.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-30 22:17:48 +00:00
kosaki 543820885e * configure.in: added -fno-strict-overflow. it suppress annoying
-Wstrict-overflow warning.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-27 12:27:00 +00:00
nobu 9b58c2edf3 * configure.in (stack_protector): disable on mingw. [Bug#5676]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-27 10:09:11 +00:00
nobu 41f756eaf3 * Makefile.in (DLDFLAGS): also needs -fstack-protector.
[Bug#5676]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-27 09:54:12 +00:00
nobu c4cd97a563 * configure.in (-fstack-protector): also needed in DLDFLAGS.
[Bug#5676]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-27 09:25:38 +00:00
nobu 929e69fdca * configure.in: whitespace-cleanup.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-27 08:26:54 +00:00
nobu a072b2dfd2 * configure.in: whitespace-cleanup.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-27 08:24:29 +00:00
kosaki a4d38daece * configure.in: add -fstack-protector into XLDFLAGS as well as
XCFLAGS if stack-protector is used.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-27 07:15:04 +00:00
kosaki ed78271c49 * configure.in: revert r33832 and r33833. [ruby-core:41313] [Bug #5674]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-27 04:55:27 +00:00
kosaki 0e28532a52 * configure.in: workaround to avoid MacOS X build error.
Maybe autoconf 2.61 is slightly buggy. [ruby-core:41316]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-27 04:30:44 +00:00
naruse 7d11b9e289 * configure.in (--no-undefined): r33840 breaks FreeBSD and DragonFly
with gcc 4.4 or later. Their environ is in /usr/libexec/ld-elf.so.1,
  so it will be false negative.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-26 22:49:28 +00:00
naruse 01a64885c3 * 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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-26 19:59:13 +00:00
nobu 8b83ea9ef1 * configure.in (--no-undefined): RUBY_TRY_CFLAGS does nothing for
linker flags.  use RUBY_TRY_LDFLAGS.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-25 20:00:31 +00:00
kosaki 0996ae361a * Makefile.in (EXTLDFLAGS): export it.
* configure.in: add --no-undefined if --enable-shared is specified.
  Gentoo enabled this option long time. Also, export EXTLDFALGS.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-25 01:41:59 +00:00
kosaki 98975ba9dc * configure.in: turn on PIE if --enable-shared is not specified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-24 23:50:00 +00:00
kosaki b2eae7891b * configure.in: add -fstack-protector. It help to protect us from
stack smashing attack.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-24 23:06:26 +00:00
kosaki d0e615e25f * configure.in: add -D_FORTIFY_SOURCE=2. It provide some compile
time and runtime check for security.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-24 23:04:35 +00:00
kosaki 450c2094be * configure.in: remove [read buffer ptr field in FILE structures] check.
ruby 1.9 or later doesn't use stdio at all.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-24 22:58:00 +00:00
kosaki 746aa6f74b * configure.in: remove [read count field in FILE] check.
ruby 1.9 or later doesn't use stdio at all.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-24 22:54:39 +00:00