* [Ada] Fix PR ada/80921
@ 2017-06-01 10:52 Eric Botcazou
0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2017-06-01 10:52 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 348 bytes --]
We have apparently never tried to build shared libraries in cross builds.
Tested on x86_64-suse-linux, applied on mainline and 7 & 6 branches.
2017-06-01 Eric Botcazou <ebotcazou@adacore.com>
PR ada/80921
* configure.ac (default_gnatlib_target): Remove bogus condition.
(have_getipinfo): Tweak.
* configure: Regenerate.
--
Eric Botcazou
[-- Attachment #2: pr80921.diff --]
[-- Type: text/x-patch, Size: 1073 bytes --]
Index: configure.ac
===================================================================
--- configure.ac (revision 248552)
+++ configure.ac (working copy)
@@ -127,9 +127,7 @@ AC_PROG_AWK
AC_PROG_LN_S
# Determine what to build for 'gnatlib'
-if test $build = $target \
- && test ${enable_shared} = yes ; then
- # Note that build=target is almost certainly the wrong test; FIXME
+if test ${enable_shared} = yes; then
default_gnatlib_target="gnatlib-shared"
else
default_gnatlib_target="gnatlib-plain"
@@ -138,15 +136,16 @@ AC_SUBST([default_gnatlib_target])
# Check for _Unwind_GetIPInfo
GCC_CHECK_UNWIND_GETIPINFO
-have_getipinfo=
if test x$have_unwind_getipinfo = xyes; then
have_getipinfo=-DHAVE_GETIPINFO
+else
+ have_getipinfo=
fi
-AC_SUBST(have_getipinfo)
+AC_SUBST([have_getipinfo])
# Check for <sys/capability.h>
AC_CHECK_HEADER([sys/capability.h], have_capability=-DHAVE_CAPABILITY, have_capability=)
-AC_SUBST(have_capability)
+AC_SUBST([have_capability])
# Determine what GCC version number to use in filesystem paths.
GCC_BASE_VER
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-06-01 10:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-01 10:52 [Ada] Fix PR ada/80921 Eric Botcazou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).