diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 02:57:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 02:57:58 +0000 |
commit | be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97 (patch) | |
tree | 9754ff1ca740f6346cf8483ec915d4054bc5da2d /fluent-bit/lib/librdkafka-2.1.0/mklove/modules/configure.pic | |
parent | Initial commit. (diff) | |
download | netdata-upstream.tar.xz netdata-upstream.zip |
Adding upstream version 1.44.3.upstream/1.44.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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.pic | 16 |
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 00000000..8f138f8d --- /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 +} + |