* libtool.m4 (CFLAGS): check whether -belf is needed on SCO, as

suggested by Robert Lipe <robertl@dgii.com>
This commit is contained in:
Alexandre Oliva 1998-11-02 08:21:18 +00:00 committed by Alexandre Oliva
parent b75bc47f18
commit c08264976c
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
1998-11-02 Alexandre Oliva <oliva@dcc.unicamp.br>
* libtool.m4 (CFLAGS): check whether -belf is needed on SCO, as
suggested by Robert Lipe <robertl@dgii.com>
1998-10-31 Gordon Matzigkeit <gord@trick.fig.org>
* demo/Makefile.am (hc-libpath): Use parameters from the libtool

9
libtool.m4 vendored
View File

@ -21,7 +21,7 @@
## configuration script generated by Autoconf, you may include it under
## the same distribution terms that you use for the rest of that program.
# serial 25 AM_PROG_LIBTOOL
# serial 26 AM_PROG_LIBTOOL
AC_DEFUN(AM_PROG_LIBTOOL,
[AC_REQUIRE([AM_ENABLE_SHARED])dnl
AC_REQUIRE([AM_ENABLE_STATIC])dnl
@ -68,7 +68,14 @@ case "$host" in
*-*-sco3.2v5*)
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -belf"
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
[AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
CFLAGS="$SAVED_CFLAGS"
fi
;;
esac