summaryrefslogtreecommitdiff
path: root/databases/riak/files/patch-deps-eleveldb-c_src-leveldb-build_detect_platform
diff options
context:
space:
mode:
authorRuslan Makhmatkhanov <rm@FreeBSD.org>2018-07-10 12:46:35 +0000
committerRuslan Makhmatkhanov <rm@FreeBSD.org>2018-07-10 12:46:35 +0000
commitc4d0b9fbaa836e41f3736b93f8d391ce7f827ee5 (patch)
treeeabcdbba65578c5af682343c089169629fd53a5a /databases/riak/files/patch-deps-eleveldb-c_src-leveldb-build_detect_platform
parentMaintainership back to Submitter (diff)
Bring back databases/riak port
Distfiles are actually still available and we still using it at work While here: - take up maintainership - pacify portlint (make makepatch, knobs ordering, add license file) - unbreak build on recent -current - remove JOBS_UNSAFE - builds fine here in poudriere with -J 4
Diffstat (limited to 'databases/riak/files/patch-deps-eleveldb-c_src-leveldb-build_detect_platform')
-rw-r--r--databases/riak/files/patch-deps-eleveldb-c_src-leveldb-build_detect_platform29
1 files changed, 29 insertions, 0 deletions
diff --git a/databases/riak/files/patch-deps-eleveldb-c_src-leveldb-build_detect_platform b/databases/riak/files/patch-deps-eleveldb-c_src-leveldb-build_detect_platform
new file mode 100644
index 000000000000..91c1596839e0
--- /dev/null
+++ b/databases/riak/files/patch-deps-eleveldb-c_src-leveldb-build_detect_platform
@@ -0,0 +1,29 @@
+--- deps/eleveldb/c_src/leveldb/build_detect_platform.orig 2014-12-04 17:57:13 UTC
++++ deps/eleveldb/c_src/leveldb/build_detect_platform
+@@ -134,7 +134,7 @@ if [ "$CROSS_COMPILE" = "true" ]; then
+ true
+ else
+ # If -std=c++0x works, use <cstdatomic>. Otherwise use port_posix.h.
+- $CXX $CFLAGS -std=c++0x -x c++ - -o /dev/null 2>/dev/null <<EOF
++ $CXX $CFLAGS -std=c++0x -x c++ - 2>/dev/null <<EOF
+ #include <cstdatomic>
+ int main() {}
+ EOF
+@@ -147,7 +147,7 @@ EOF
+
+ # Test whether Snappy library is installed
+ # http://code.google.com/p/snappy/
+- $CXX $CFLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF
++ $CXX $CFLAGS -x c++ - 2>/dev/null <<EOF
+ #include <snappy.h>
+ int main() {}
+ EOF
+@@ -157,7 +157,7 @@ EOF
+ fi
+
+ # Test whether tcmalloc is available
+- $CXX $CFLAGS -x c++ - -o /dev/null -ltcmalloc 2>/dev/null <<EOF
++ $CXX $CFLAGS -x c++ - -ltcmalloc 2>/dev/null <<EOF
+ int main() {}
+ EOF
+ if [ "$?" = 0 ]; then