[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Attached are diffs for configure process to be able to determine buggy
IRIX linker (crashes after use of -s option).
Stepan Roh
--- configure.in.orig Sun Jan 30 22:46:54 2000
+++ configure.in Mon Mar 6 13:37:11 2000
@@ -90,6 +90,7 @@
dnl Check for tools.
AC_PROG_CC
AC_PROG_CPP
+ALLEGRO_ACTEST_PROG_LD_S
AC_PROG_RANLIB
AC_PROG_INSTALL
AC_PROG_MAKE_SET
@@ -184,7 +185,9 @@
else
COMPILE_PROGRAM=COMPILE_NORMAL
COMPILE_S_PROGRAM=COMPILE_S_NORMAL
- LDFLAGS="-s $LDFLAGS"
+ if test "X$allegro_cv_prog_ld_s" = "Xyes"; then
+ LDFLAGS="-s $LDFLAGS"
+ fi
LIB_TO_LINK=alleg
PLUGIN_LIB=lib/unix/libaldat.a
allegro_build_normal_library=yes
--- aclocal.m4.orig Sun Jan 30 22:46:54 2000
+++ aclocal.m4 Mon Mar 6 12:05:52 2000
@@ -270,3 +270,18 @@
AC_MSG_RESULT($allegro_support_constructor)])
+dnl
+dnl Test for buggy IRIX linker.
+dnl
+dnl Variables:
+dnl allegro_cv_prog_ld_s
+dnl
+AC_DEFUN(ALLEGRO_ACTEST_PROG_LD_S,
+[AC_MSG_CHECKING(whether linker works with -s option)
+allegro_save_LDFLAGS=$LDFLAGS
+LDFLAGS="-s $LDFLAGS"
+AC_CACHE_VAL(allegro_cv_prog_ld_s, [
+AC_TRY_LINK(,{},allegro_cv_prog_ld_s=yes, allegro_cv_prog_ld_s=no)])
+LDFLAGS=$allegro_save_LDFLAGS
+AC_MSG_RESULT($allegro_cv_prog_ld_s)
+])