summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/lib/librdkafka-2.1.0/mklove/modules/configure.pic
blob: 8f138f8d51fec53464294eed571b70b403a0724f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
}