summaryrefslogtreecommitdiff
path: root/external/curl/curl-freebsd.patch.1
diff options
context:
space:
mode:
Diffstat (limited to 'external/curl/curl-freebsd.patch.1')
-rw-r--r--external/curl/curl-freebsd.patch.132
1 files changed, 32 insertions, 0 deletions
diff --git a/external/curl/curl-freebsd.patch.1 b/external/curl/curl-freebsd.patch.1
new file mode 100644
index 000000000000..b1d7cb845845
--- /dev/null
+++ b/external/curl/curl-freebsd.patch.1
@@ -0,0 +1,32 @@
+Usual patch to produce Linux-like .so files on FreeBSD
+
+diff -ur curl-7.26.0/ltmain.sh misc/build/curl-7.26.0/ltmain.sh
+--- a/ltmain.sh 2012-07-02 13:28:51.298994493 +0200
++++ b/ltmain.sh 2012-07-02 13:42:46.511039769 +0200
+@@ -7334,13 +7334,13 @@
+ #
+ case $version_type in
+ # correct linux to gnu/linux during the next big refactor
+- darwin|linux|osf|windows|none)
++ darwin|linux|osf|windows|freebsd-aout|freebsd-elf|none)
+ func_arith $number_major + $number_minor
+ current=$func_arith_result
+ age="$number_minor"
+ revision="$number_revision"
+ ;;
+- freebsd-aout|freebsd-elf|qnx|sunos)
++ qnx|sunos)
+ current="$number_major"
+ revision="$number_minor"
+ age="0"
+@@ -7420,8 +7420,8 @@
+ ;;
+
+ freebsd-elf)
+- major=".$current"
+- versuffix=".$current"
++ major=.`expr $current - $age`
++ versuffix="$major"
+ ;;
+
+ irix | nonstopux)