summaryrefslogtreecommitdiffstats
path: root/fluent-bit/lib/librdkafka-2.1.0/mklove/modules/configure.pic
diff options
context:
space:
mode:
Diffstat (limited to 'fluent-bit/lib/librdkafka-2.1.0/mklove/modules/configure.pic')
-rw-r--r--fluent-bit/lib/librdkafka-2.1.0/mklove/modules/configure.pic16
1 files changed, 16 insertions, 0 deletions
diff --git a/fluent-bit/lib/librdkafka-2.1.0/mklove/modules/configure.pic b/fluent-bit/lib/librdkafka-2.1.0/mklove/modules/configure.pic
new file mode 100644
index 000000000..8f138f8d5
--- /dev/null
+++ b/fluent-bit/lib/librdkafka-2.1.0/mklove/modules/configure.pic
@@ -0,0 +1,16 @@
+#!/bin/bash
+#
+# Checks if -fPIC is supported, and if so turns it on.
+#
+# Sets:
+# HAVE_PIC
+# CPPFLAGS
+#
+
+function checks {
+
+ if mkl_compile_check PIC HAVE_PIC disable CC "-fPIC" "" ; then
+ mkl_mkvar_append CPPFLAGS CPPFLAGS "-fPIC"
+ fi
+}
+