mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
2de457b006
PR: 44713 Submitted by: Sergei Kolobov <sergei@kolobov.com> Approved by: Mark Huizer <xaa@timewasters.nl> (maintainer)
41 lines
1.5 KiB
Plaintext
41 lines
1.5 KiB
Plaintext
--- configure.orig Wed Oct 30 03:37:23 2002
|
|
+++ configure Wed Oct 30 03:56:57 2002
|
|
@@ -2033,6 +2033,18 @@
|
|
ELFLIB_MAJOR="lib\$(THIS_LIB).\$(ELF_MAJOR_VERSION).dylib"
|
|
ELFLIB_MAJOR_MINOR="lib\$(THIS_LIB).\$(ELF_MAJOR_VERSION).\$(ELF_MINOR_VERSION).dylib"
|
|
;;
|
|
+ *freebsd* )
|
|
+ ELFLIB_MAJOR_MINOR="\$(ELFLIB).\$(ELF_MAJOR_VERSION)"
|
|
+ ELF_CC="\$(CC)"
|
|
+ ELF_CFLAGS="\$(CFLAGS) -fPIC"
|
|
+ if [ $PORTOBJFORMAT = elf ]; then
|
|
+ ELF_LINK="\$(CC) -shared -Wl,-soname,\$(ELFLIB_MAJOR)"
|
|
+ else
|
|
+ ELF_LINK="ld -Bshareable -x"
|
|
+ fi
|
|
+ ELF_LINK_CMD="\$(ELF_LINK)"
|
|
+ ELF_DEP_LIBS="\$(DL_LIB) -lm"
|
|
+ ;;
|
|
* )
|
|
echo "Note: ELF compiler for host_os=$host_os may be wrong"
|
|
ELF_CC="$CC"
|
|
@@ -2438,16 +2489,8 @@
|
|
|
|
echo $ac_n "checking SLANG_VERSION""... $ac_c" 1>&6
|
|
echo "configure:2441: 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=5
|
|
slang_version="$slang_major_version.$slang_minor_version"
|
|
echo "$ac_t""$slang_version" 1>&6
|
|
|