aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2013-06-18 12:33:06 +0800
committerdinoex <dinoex@FreeBSD.org>2013-06-18 12:33:06 +0800
commit010612a9298c3afd391020efbfbe8b9e8e67e00e (patch)
treeff58c640e9a696bb785e1f20923f5dd0fdfbc1d9
parent0cff6710785ade33e83d6a215c9e5a1e16b7dc5b (diff)
downloadfreebsd-ports-gnome-010612a9298c3afd391020efbfbe8b9e8e67e00e.tar.gz
freebsd-ports-gnome-010612a9298c3afd391020efbfbe8b9e8e67e00e.tar.zst
freebsd-ports-gnome-010612a9298c3afd391020efbfbe8b9e8e67e00e.zip
- fix build when libc.so is not a symlink
Submitted by: Bryan Drewery
-rw-r--r--security/openssl/files/patch-config19
1 files changed, 19 insertions, 0 deletions
diff --git a/security/openssl/files/patch-config b/security/openssl/files/patch-config
new file mode 100644
index 000000000000..1e45c7bc795c
--- /dev/null
+++ b/security/openssl/files/patch-config
@@ -0,0 +1,19 @@
+--- config.orig 2013-06-16 07:01:13.038797248 -0500
++++ config 2013-06-16 07:01:18.138794838 -0500
+@@ -734,14 +734,8 @@
+ sparc64-*-*bsd*) OUT="BSD-sparc64" ;;
+ ia64-*-*bsd*) OUT="BSD-ia64" ;;
+ amd64-*-*bsd*) OUT="BSD-x86_64" ;;
+- *86*-*-*bsd*) # mimic ld behaviour when it's looking for libc...
+- if [ -L /usr/lib/libc.so ]; then # [Free|Net]BSD
+- libc=/usr/lib/libc.so
+- else # OpenBSD
+- # ld searches for highest libc.so.* and so do we
+- libc=`(ls /usr/lib/libc.so.* | tail -1) 2>/dev/null`
+- fi
+- case "`(file -L $libc) 2>/dev/null`" in
++ *86*-*-*bsd*)
++ case "`(file -L /bin/sh) 2>/dev/null`" in
+ *ELF*) OUT="BSD-x86-elf" ;;
+ *) OUT="BSD-x86"; options="$options no-sse2" ;;
+ esac ;;