diff options
Diffstat (limited to 'devel/libslang/files/patch-aa')
-rw-r--r-- | devel/libslang/files/patch-aa | 58 |
1 files changed, 47 insertions, 11 deletions
diff --git a/devel/libslang/files/patch-aa b/devel/libslang/files/patch-aa index 5660d068dff3..14078aca6cc8 100644 --- a/devel/libslang/files/patch-aa +++ b/devel/libslang/files/patch-aa @@ -1,11 +1,47 @@ ---- src/sltermin.c.orig Sun Jul 26 15:57:36 1998 -+++ src/sltermin.c Sun Jul 26 15:58:06 1998 -@@ -273,7 +273,7 @@ - { - tidir = Terminfo_Dirs[i]; - if ((tidir != NULL) -- && (sizeof (file) > strlen (tidir) + 2 + strlen (term))) -+ && (sizeof (file) > strlen (tidir) + 3 + strlen (term))) - { - sprintf (file, "%s/%c/%s", tidir, *term, term); - if (NULL != (fp = open_terminfo (file, ti))) +--- configure.orig Sun Nov 14 07:20:57 1999 ++++ configure Thu Dec 23 11:26:42 1999 +@@ -2152,33 +2152,24 @@ + + echo $ac_n "checking SLANG_VERSION""... $ac_c" 1>&6 + echo "configure:2155: checking SLANG_VERSION" >&5 +-slang_version=`grep "^#define *SLANG_VERSION " $srcdir/src/slang.h | +- awk '{ print $3 }'` +-slang_major_version=`echo $slang_version | +- awk '{ print int($1/10000) }'` +-slang_minor_version=`echo $slang_version $slang_major_version | +- awk '{ print int(($1 - $2*10000)/100) }'` +-slang_mminor_version=`echo $slang_version $slang_major_version $slang_minor_version | +- awk '{ print ($1 - $2*10000 - $3*100) }'` +- +-slang_minor_version="$slang_minor_version.$slang_mminor_version" +-slang_version="$slang_major_version.$slang_minor_version" ++slang_major_version=1 ++slang_minor_version=3 + echo "$ac_t""$slang_version" 1>&6 + + + + + +-if test "$GCC" = yes; then +- ELF_CC="gcc" +- ELF_CFLAGS="-O2 -fno-strength-reduce -fPIC" +- ELF_LINK="gcc -shared -Wl,-soname#" +- ELF_LINK_CMD="\$(ELF_LINK),\$(ELFLIB_MAJOR)" ++if [ $PORTOBJFORMAT = elf ]; then ++ELF_CC="\$(CC)" ++ELF_CFLAGS="\$(CFLAGS) -fPIC" ++ELF_LINK="\$(CC) -shared -Wl,-soname,\$(ELFLIB_MAJOR)" ++ELF_LINK_CMD="\$(ELF_LINK)" + else +- ELF_CC="cc" +- ELF_CFLAGS="-K pic" +- ELF_LINK="ld -G -z text" +- ELF_LINK_CMD="\$(ELF_LINK)" ++ELF_CC="\$(CC)" ++ELF_CFLAGS="\$(CFLAGS) -fPIC" ++ELF_LINK="ld -Bshareable -x" ++ELF_LINK_CMD="\$(ELF_LINK)" + fi + + |