Skip to content

Commit f896ad3

Browse files
committed
* configure.in: Fixing Haiku build.
- -lbe is not required for linking - stack protector doesn't work for now because of the default gcc's bug by Takashi Toyoshima <[email protected]> ruby#167 * signal.c (ruby_signal): haiku doesn't have SIGBUS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent a394604 commit f896ad3

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

ChangeLog

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
Thu Aug 23 11:52:04 2012 NARUSE, Yui <[email protected]>
2+
3+
* configure.in: Fixing Haiku build.
4+
- -lbe is not required for linking
5+
- stack protector doesn't work for now because of the default gcc's bug
6+
by Takashi Toyoshima <[email protected]>
7+
https://github.com/ruby/ruby/pull/167
8+
9+
* signal.c (ruby_signal): haiku doesn't have SIGBUS.
10+
111
Thu Aug 23 11:32:44 2012 NAKAMURA Usaku <[email protected]>
212

313
* test/open-uri/test_open-uri.rb (TestOpenURI#test_read_timeout): this

configure.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ if test "$GCC" = yes; then
601601

602602
# -fstack-protector
603603
AS_CASE(["$target_os"],
604-
[mingw*|nacl], [
604+
[mingw*|nacl|haiku], [
605605
stack_protector=no
606606
],
607607
[
@@ -2289,8 +2289,8 @@ if test "$with_dln_a_out" != yes; then
22892289
],
22902290
[i586*], [
22912291
: ${LDSHARED='$(LD) -shared'}
2292-
DLDFLAGS="$DLDFLAGS -L/boot/develop/lib/x86 -L/boot/home/config/lib \$(topdir)/_APP_ -lbe -lroot"
2293-
LDFLAGS="$LDFLAGS -L/boot/develop/lib/x86 -L/boot/home/config/lib -lbe -lroot"
2292+
DLDFLAGS="$DLDFLAGS -L/boot/develop/lib/x86 -L/boot/home/config/lib \$(topdir)/_APP_ -lroot"
2293+
LDFLAGS="$LDFLAGS -L/boot/develop/lib/x86 -L/boot/home/config/lib -lroot"
22942294
])
22952295
: ${LIBPATHENV=LIBRARY_PATH}
22962296
rb_cv_dlopen=yes],

signal.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,11 @@ ruby_signal(int signum, sighandler_t handler)
463463
sigact.sa_flags |= SA_NOCLDWAIT;
464464
#endif
465465
#if defined(SA_ONSTACK) && defined(USE_SIGALTSTACK)
466-
if (signum == SIGSEGV || signum == SIGBUS)
466+
if (signum == SIGSEGV
467+
#ifdef SIGBUS
468+
|| signum == SIGBUS
469+
#endif
470+
)
467471
sigact.sa_flags |= SA_ONSTACK;
468472
#endif
469473
if (sigaction(signum, &sigact, &old) < 0) {

0 commit comments

Comments
 (0)