mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-07 22:58:11 +00:00
e0c9715c36
PR: ports/20068 Submitted by: Mark Huizer <xaa+ports@timewasters.nl> (MAINTAINER)
42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
--- configure.orig Sun Apr 23 05:57:29 2000
|
|
+++ configure Thu Jul 20 20:11:29 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)"
|
|
@@ -2199,16 +2212,8 @@
|
|
|
|
echo $ac_n "checking SLANG_VERSION""... $ac_c" 1>&6
|
|
echo "configure:2202: 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
|
|
|