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 }