Skip to content

Commit

Permalink
2009-12-09 Bryce McKinlay <bmckinlay@gmail.com>
Browse files Browse the repository at this point in the history
        PR java/41991  
        * configure.ac (SYSTEMSPEC): Pass -allow_stack_execute to Darwin
        linker.
        * Makefile.am (gij_LDFLAGS): Remove extra_gij_ldflags.
        * configure: Regenerate.  
        * Makefile.in: Regenerate.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155113 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
bryce committed Dec 9, 2009
1 parent eb1d5aa commit 163052a
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
9 changes: 9 additions & 0 deletions libjava/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2009-12-09 Bryce McKinlay <bmckinlay@gmail.com>

PR java/41991
* configure.ac (SYSTEMSPEC): Pass -allow_stack_execute to Darwin
linker.
* Makefile.am (gij_LDFLAGS): Remove extra_gij_ldflags.
* configure: Regenerate.
* Makefile.in: Regenerate.

2009-12-08 Eric Botcazou <ebotcazou@adacore.com>

* configure.host (sparc*-sun-solaris2.*): New case.
Expand Down
3 changes: 1 addition & 2 deletions libjava/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -1065,8 +1065,7 @@ gij_SOURCES =
## need this because we are explicitly using libtool to link using the
## `.la' file.
gij_LDFLAGS = -rpath $(dbexecdir) -rpath $(toolexeclibdir) \
-shared-libgcc $(THREADLDFLAGS) $(extra_ldflags) \
$(extra_gij_ldflags)
-shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
gij_LINK = $(GCJLINK) $(gij_LDFLAGS)
## See jv_convert_LDADD.
gij_LDADD = -L$(here)/.libs libgij.la
Expand Down
4 changes: 1 addition & 3 deletions libjava/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,6 @@ dbexecdir = @dbexecdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
extra_gij_ldflags = @extra_gij_ldflags@
extra_ldflags = @extra_ldflags@
extra_ldflags_libjava = @extra_ldflags_libjava@ $(am__append_9)
gcc_suffix = @gcc_suffix@
Expand Down Expand Up @@ -8499,8 +8498,7 @@ gc_analyze_DEPENDENCIES = libgcj-tools.la libgcj.la libgcj.spec \
$(am__append_28)
gij_SOURCES =
gij_LDFLAGS = -rpath $(dbexecdir) -rpath $(toolexeclibdir) \
-shared-libgcc $(THREADLDFLAGS) $(extra_ldflags) \
$(extra_gij_ldflags)
-shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)

gij_LINK = $(GCJLINK) $(gij_LDFLAGS)
gij_LDADD = -L$(here)/.libs libgij.la
Expand Down
14 changes: 6 additions & 8 deletions libjava/configure
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,6 @@ GCLIBS
LIBGCJTESTSPEC
LIBSTDCXXSPEC
extra_ldflags
extra_gij_ldflags
extra_ldflags_libjava
X_EXTRA_LIBS
X_LIBS
Expand Down Expand Up @@ -13245,7 +13244,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 13248 "configure"
#line 13247 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
Expand Down Expand Up @@ -13351,7 +13350,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 13354 "configure"
#line 13353 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
Expand Down Expand Up @@ -19216,7 +19215,7 @@ if test "${enable_sjlj_exceptions+set}" = set; then :
enableval=$enable_sjlj_exceptions; :
else
cat > conftest.$ac_ext << EOF
#line 19219 "configure"
#line 19218 "configure"
struct S { ~S(); };
void bar();
void foo()
Expand Down Expand Up @@ -19546,6 +19545,9 @@ case "${host}" in
SYSTEMSPEC="-lunicows $SYSTEMSPEC"
fi
;;
*-*-darwin[912]*)
SYSTEMSPEC="-allow_stack_execute"
;;
*)
SYSTEMSPEC=
;;
Expand Down Expand Up @@ -20297,9 +20299,6 @@ case "${host}" in
# on Darwin -single_module speeds up loading of the dynamic libraries.
extra_ldflags_libjava=-Wl,-single_module
;;
*-*-darwin[912]*)
extra_gij_ldflags=-Wl,-allow_stack_execute
;;
arm*linux*eabi)
# Some of the ARM unwinder code is actually in libstdc++. We
# could in principle replicate it in libgcj, but it's better to
Expand All @@ -20318,7 +20317,6 @@ esac




# Allow the GC to be disabled. Can be useful when debugging.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
$as_echo_n "checking for garbage collector to use... " >&6; }
Expand Down
7 changes: 3 additions & 4 deletions libjava/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,9 @@ case "${host}" in
SYSTEMSPEC="-lunicows $SYSTEMSPEC"
fi
;;
*-*-darwin[[912]]*)
SYSTEMSPEC="-allow_stack_execute"
;;
*)
SYSTEMSPEC=
;;
Expand Down Expand Up @@ -919,9 +922,6 @@ case "${host}" in
# on Darwin -single_module speeds up loading of the dynamic libraries.
extra_ldflags_libjava=-Wl,-single_module
;;
*-*-darwin[[912]]*)
extra_gij_ldflags=-Wl,-allow_stack_execute
;;
arm*linux*eabi)
# Some of the ARM unwinder code is actually in libstdc++. We
# could in principle replicate it in libgcj, but it's better to
Expand All @@ -935,7 +935,6 @@ arm*linux*eabi)
;;
esac
AC_SUBST(extra_ldflags_libjava)
AC_SUBST(extra_gij_ldflags)
AC_SUBST(extra_ldflags)
AC_SUBST(LIBSTDCXXSPEC)

Expand Down
1 change: 0 additions & 1 deletion libjava/gcj/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ dbexecdir = @dbexecdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
extra_gij_ldflags = @extra_gij_ldflags@
extra_ldflags = @extra_ldflags@
extra_ldflags_libjava = @extra_ldflags_libjava@
gcc_suffix = @gcc_suffix@
Expand Down
1 change: 0 additions & 1 deletion libjava/include/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ dbexecdir = @dbexecdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
extra_gij_ldflags = @extra_gij_ldflags@
extra_ldflags = @extra_ldflags@
extra_ldflags_libjava = @extra_ldflags_libjava@
gcc_suffix = @gcc_suffix@
Expand Down
1 change: 0 additions & 1 deletion libjava/testsuite/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ dbexecdir = @dbexecdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
extra_gij_ldflags = @extra_gij_ldflags@
extra_ldflags = @extra_ldflags@
extra_ldflags_libjava = @extra_ldflags_libjava@
gcc_suffix = @gcc_suffix@
Expand Down

0 comments on commit 163052a

Please sign in to comment.