Ilya Zakharevich on Thu, 10 Sep 1998 00:56:01 -0400 (EDT) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Newer OS/2 support patch |
This patch almost makes it: this time I tested installation also, and it needs only instertion of two carriage returns in the install-include section (somehow they are stripped by sh) to work. (Note that a patch to fix a filedescriptor leak is needed too.) Enjoy, Ilya P.S. The entry for the bench is Pentium 133MHz OS/2 EMX 0.9c gcc gpl - 20880 - 2.0.11 IZ --- ./config/Makefile.SH.pre Thu Jul 23 08:40:00 1998 +++ ./config/Makefile.SH Wed Sep 9 21:38:02 1998 @@ -177,6 +177,12 @@ RLLIBS = $RLLIBS EOT fi + +case "$ln_s" in + *cp*) ln_objdir=".";; + *) ln_objdir="$obj_dir" +esac + cat >> $file << EOT TOPLDDYN = -L$TOP/$objdir \$(RLLIBS) @@ -193,7 +199,7 @@ gp: gp-$dft lib-$dft ../gp$suffix$exe_su ../gp$suffix$exe_suff: gp-$dft -\$(RM) \$@ - -\$(LN) $objdir/gp-$dft \$@ + -\$(LN) $ln_objdir/gp-$dft$exe_suff \$@ all: gp-sta gp-dyn lib-sta @@ -281,7 +299,7 @@ install-bin-dyn: gp-dyn install-bin-sta: gp-sta -mkdir -p \$(BINDIR) -\$(RM) \$(BINDIR)/gp-$version \$(BINDIR)/gp$exe_suff - \$(INSTALL_PROGRAM) gp-sta \$(BINDIR)/gp-$version + \$(INSTALL_PROGRAM) gp-sta$exe_suff \$(BINDIR)/gp-$version$exe_suff -\$(LN) gp-$version$exe_suff \$(BINDIR)/gp$exe_suff # Can't strip it if we want install() to work on Linux or OSF. # strip \$(BINDIR)/gp-$version