Re: [AD] Applying my patches to CVS

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]



On 7 Sep 2000, Michael Bukin wrote:

> Stepan Roh <sroh7497@xxxxxxxxxx> writes:
> 
> > could someone apply my patches "'const' correctness in C version of
> > Allegro" and "IRIX buggy linker detection" to CVS, please? 'const' patch
> > is one week old and 'buggy linker' is 6 months (Shawn lost it and George
> > seems to forgot to apply it) old, but both apply cleanly to CVS. I can
> > repost them if they were lost.
> 
> I've applied "const correctness" patch to CVS,

Thank you!

> but I don't have "buggy linker detection" patch.  Could you repost it?

It's attached (2 attachments, but 1 patch together).

Have a nice day.

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)
+])


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/