1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/devel/libslang/files/patch-aa

42 lines
1.4 KiB
Plaintext
Raw Normal View History

--- configure.orig Sun Jan 9 20:38:14 2000
+++ configure Wed Feb 9 16:18:35 2000
@@ -1865,6 +1865,19 @@
ELF_LINK_CMD="\$(ELF_LINK)\$(ELFLIB_MAJOR)"
fi
;;
+ *freebsd* )
+ 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="\$(CFLAGS) -fPIC"
+ ELF_LINK="ld -Bshareable -x"
+ ELF_LINK_CMD="\$(ELF_LINK)"
+ fi
+ ;;
* )
echo "Note: ELF compiler for host_os=$host_os may be wrong"
ELF_CC="\$(CC)"
@@ -2181,16 +2194,8 @@
echo $ac_n "checking SLANG_VERSION""... $ac_c" 1>&6
echo "configure:2184: 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_major_version=1
+slang_minor_version=4
slang_version="$slang_major_version.$slang_minor_version"
echo "$ac_t""$slang_version" 1>&6