aboutsummaryrefslogtreecommitdiff
path: root/japanese/libslang
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2007-01-30 10:25:34 +0000
committerPav Lucistnik <pav@FreeBSD.org>2007-01-30 10:25:34 +0000
commit2df76eb0a73bb59d817aa60758a5f10e3e544c3b (patch)
tree07e10c49034b87755dafb03956ad93c5363e0bb7 /japanese/libslang
parent1c97f613254a72e0ae97ea8d817ebe38096d6949 (diff)
downloadports-2df76eb0a73bb59d817aa60758a5f10e3e544c3b.tar.gz
ports-2df76eb0a73bb59d817aa60758a5f10e3e544c3b.zip
Notes
Diffstat (limited to 'japanese/libslang')
-rw-r--r--japanese/libslang/files/patch-aa17
1 files changed, 3 insertions, 14 deletions
diff --git a/japanese/libslang/files/patch-aa b/japanese/libslang/files/patch-aa
index f58a3046be8e..1356b0fdb948 100644
--- a/japanese/libslang/files/patch-aa
+++ b/japanese/libslang/files/patch-aa
@@ -20,35 +20,24 @@
cat >> confdefs.h <<\EOF
#define HAVE_DLOPEN 1
EOF
-@@ -1943,7 +1943,11 @@
+@@ -1943,7 +1943,7 @@
ELFLIB="lib\$(THIS_LIB).so"
ELFLIB_MAJOR="\$(ELFLIB).\$(ELF_MAJOR_VERSION)"
-ELFLIB_MAJOR_MINOR="\$(ELFLIB).\$(ELF_MAJOR_VERSION).\$(ELF_MINOR_VERSION)"
-+if test $PORTOBJFORMAT = elf; then
-+ ELFLIB_MAJOR_MINOR="\$(ELFLIB).\$(ELF_MAJOR_VERSION)"
-+else
-+ ELFLIB_MAJOR_MINOR="\$(ELFLIB).\$(ELF_MAJOR_VERSION).\$(ELF_MINOR_VERSION)"
-+fi
++ELFLIB_MAJOR_MINOR="\$(ELFLIB).\$(ELF_MAJOR_VERSION)"
case "$host_os" in
*linux* )
-@@ -2032,6 +2036,19 @@
+@@ -2032,6 +2036,12 @@
ELFLIB_MAJOR="lib$(THIS_LIB).$(ELF_MAJOR_VERSION).dylib"
ELFLIB_MAJOR_MINOR="lib$(THIS_LIB).$(ELF_MAJOR_VERSION).$(ELF_MINOR_VERSION).dylib"
;;
+ *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"