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
kosaki
5817762f2b
* configure.in: add -Wall always.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-24 22:49:51 +00:00
ryan
5a94b29c53
Improved error message when using llvm-gcc
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-17 22:38:18 +00:00
ngoto
fa00b6516c
* include/ruby/defines.h (FLUSH_REGISTER_WINDOWS): move sparc asm code
...
to a separete file sparc.c for preventing inlining optimization.
Patched by Jurij Smakov. [Bug #5244 ] [ruby-core:40685]
* sparc.c (rb_sparc_flush_register_windows): ditto.
* configure.in: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-15 04:42:31 +00:00
nobu
e120e37577
* configure.in: should not use test -e for portability.
...
[ruby-core:40841] [Bug #5594 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-09 01:32:25 +00:00
nobu
b9a7f8b44c
* configure.in: reject llvm-gcc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-01 13:08:30 +00:00
luislavena
0bbb8e8975
* configure.in: check -fno-omit-frame-pointer acceptance and usage
...
under MinGW. [ruby-core:39957] [Bug #5407 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-30 15:51:33 +00:00
akr
e7f8c03818
* configure.in: check pipe2.
...
* io.c (rb_cloexec_pipe): use pipe2 if available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-30 13:48:35 +00:00
akr
cb9f3040d7
* configure.in: check dup3.
...
* io.c (rb_cloexec_dup2): use dup3 if available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-29 22:48:41 +00:00
nobu
c1de566071
* configure.in (RUBY_DEFINE_IF): revert r33534 partially to get
...
rid of AS_ECHO which is not available in autoconf 2.61.
[ruby-dev:44702]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-27 09:28:21 +00:00
nobu
1b4e137537
* configure.in (RUBY_FUNC_ATTRIBUTE): unset temporary variable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-27 05:56:24 +00:00
nobu
9598856e86
* configure.in (RUBY_STACK_GROW_DIRECTION): substitute CPU name as
...
shell variable name. based on the patch by The Written Word Inc. at
[ruby-core:40421]. [Bug #5488 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-27 05:55:29 +00:00
nobu
682177e169
* configure.in (pthread_np.h): needs pthread.h to be included
...
previously on OpenBSD. a patch by George Koehler <xkernigh AT
netscape.net> at [ruby-core:39752]. [Bug #5376 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-28 00:14:19 +00:00
kosaki
36a1e76053
* configure.in: remove DJGPP support. It's not longer supported
...
since ruby 1.9.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-26 00:21:54 +00:00
kosaki
20ae79b0c2
* include/ruby/defines.h: remove NextStep, OpenStep, Rhapsody
...
support. Last activity of their OSs are 7 years ago.
* configure.in: ditto.
* dir.c: ditto.
* ext/tk/extconf.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-26 00:19:03 +00:00
kosaki
6823334c21
* configure.in: remove a code for human68k. it's no longer
...
supported since r19677.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-26 00:05:45 +00:00
nobu
256f355af5
* configure.in: ignore all warnings from an arbitrary
...
header in /usr/local/include.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-25 07:45:08 +00:00
nobu
3e0819c66a
* configure.in (sizeof_struct_dirent_too_small): check if struct
...
dirent.d_name is too small.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-03 14:56:26 +00:00
nobu
90a10297d6
* configure.in (RUBY_MINGW32): take tool prefix from CC.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-03 14:55:20 +00:00
kosaki
3596d49edf
* configure.in: fix a build failure on GNU Hurd.
...
Patch by Samuel Thibault <sthibault at debian dot org>. Thank you!
[Bug #5250 ] [ruby-core:39185]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-30 00:13:56 +00:00
ngoto
b28715b2fb
* configure.in: use LD_LIBRARY_PATH_64 on 64-bit Solaris.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-21 05:34:51 +00:00
nobu
e9930a4b56
* process.c (proc_spawn_v, proc_spawn): should not wait the
...
spawned process.
* process.c (proc_spawn_v): fix missing argument, and try with
/bin/sh only if failed with ENOEXEC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-19 05:25:52 +00:00
mrkn
5852b97e4e
* configure.in: defines _DARWIN_UNLIMITED_SELECT if the target_os
...
is darwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-19 04:20:10 +00:00
kosaki
da6eec340e
fix r32943. It did break configure.in completely.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-12 04:42:13 +00:00
kosaki
33c7e324e5
* configure.in: Desbribe "no" configure option for site_ruby
...
and vendor_ruby. Patch by Vit Ondruch. [Bug #5187 ][ruby-core:38921]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-12 02:42:51 +00:00
kosaki
b6c6ce116e
* configure.in: add -Wunused-variable to default CFLAGS.
...
Patch by Eric Wong. [Feature #5157 ] [ruby-core:38798]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-07 13:43:37 +00:00
ngoto
3fb4569534
* configure.in: when Solaris cc, use $(CC) to link shared libs.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-04 11:36:50 +00:00
mrkn
03418c4e5f
* configure.in: set CXX variable to the C++ compiler that matches the
...
C compiler specified by CC variable (e.g. use g++-4.2 for gcc-4.2).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-03 17:49:22 +00:00
yugui
6280ce3b68
Forward-ports r32779 from branches/ruby_1_9_3 to trunk. The original commit
...
by ktsj.
--
configure.in: fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-31 14:17:45 +00:00
yugui
53d3b13233
Forwardports r32772 and r32773 from branches/ruby_1_9_3 to trunk.
...
* common.mk (ECHO1): ":" in a make variable replacement cause a syntax
error with /usr/ccs/bin/make on Solaris. Uses $(NULLCMD) instead.
* configure.in (NULLCMD): new check.
* Makefile.in (NULLCMD): Reflects checking in configure.
* win32/Makefile.sub (NULLCMD): new assignment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-31 11:31:55 +00:00
naruse
63bbbdb6fb
* configure.in (enable_pthread): use -pthread on OpenBSD without
...
explicit option. patched by Jeremy Evans. [ruby-core:38572]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-29 07:17:32 +00:00
kosaki
1e52e56037
revert r32647. r32649 is better one.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-23 15:57:21 +00:00
kosaki
e39294cac5
* configure.in: changed default optflags to -O0 if the compiler is
...
llvm-gcc. It prevent ruby crash on OS X 10.7 (Lion).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-23 15:18:32 +00:00
nobu
2915c155e8
* configure.in (RUBY_UNIVERSAL_ARCH): restore arch flag.
...
Bug #4977
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-16 08:29:21 +00:00
nari
c3e0526269
* configure.in: can't subtract void *.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-08 05:39:50 +00:00
nari
17bb77fd77
* gc.c: change water_mark value value that may call
...
gc_mark(lev <= GC_LEVEL_MAX) in gc_mark().
In ruby_stack_check(), water_mark is a value that may call some
C function. Fixes Bug #3781
* configure.in: define GC_MARK_STACKFRAME_WORD that approximate
size of gc_mark() and gc_mark_children() stackframes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-07 14:59:09 +00:00
kanemoto
c6ef31c933
configure.in: Add warnflags for XL/C on AIX during configure
...
to avoid [Bug #3971 ]. See [ruby-core:32859]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 12:31:53 +00:00
kosaki
0148d41a13
* signal.c: Now, USE_TRAP_SIGMASK depend on HAVE_PTHREAD_SIGMASK.
...
The code have already depended on pthread_sigmask since r27464.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-28 10:42:25 +00:00