diff options
author | pav <pav@FreeBSD.org> | 2007-01-30 18:25:34 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2007-01-30 18:25:34 +0800 |
commit | 68e4663f01d748743e0029f83931c02fba58eb4e (patch) | |
tree | d24dbe32e4bdb87d0f3ba1c46717e6e34576e724 /japanese/libslang | |
parent | c6c1440c2b66077bedba90612a4827a8051ec9c1 (diff) | |
download | freebsd-ports-gnome-68e4663f01d748743e0029f83931c02fba58eb4e.tar.gz freebsd-ports-gnome-68e4663f01d748743e0029f83931c02fba58eb4e.tar.zst freebsd-ports-gnome-68e4663f01d748743e0029f83931c02fba58eb4e.zip |
- Remove support for a.out format and PORTOBJFORMAT variable from individual
ports
With hat: portmgr
Diffstat (limited to 'japanese/libslang')
-rw-r--r-- | japanese/libslang/files/patch-aa | 17 |
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" |