1*7c3d14c8STreehugger Robot# Options which may be overriden for platforms, etc. 2*7c3d14c8STreehugger Robot# 3*7c3d14c8STreehugger Robot# This list of such variables should be kept up to date with AvailableOptions in 4*7c3d14c8STreehugger Robot# 'make/lib_info.mk'. 5*7c3d14c8STreehugger Robot 6*7c3d14c8STreehugger Robot# The compiler to use. 7*7c3d14c8STreehugger RobotCC := gcc 8*7c3d14c8STreehugger Robot 9*7c3d14c8STreehugger Robot# The compiler flags to use. 10*7c3d14c8STreehugger RobotCFLAGS := -Wall -Werror 11*7c3d14c8STreehugger Robot 12*7c3d14c8STreehugger Robot# The list of functions to include in the library. 13*7c3d14c8STreehugger RobotFUNCTIONS := 14*7c3d14c8STreehugger Robot 15*7c3d14c8STreehugger Robot# Whether optimized function implementations should be used. 16*7c3d14c8STreehugger RobotOPTIMIZED := 1 17*7c3d14c8STreehugger Robot 18*7c3d14c8STreehugger Robot# Whether function definitions should use hidden visibility. This adds the 19*7c3d14c8STreehugger Robot# -fvisibility=hidden compiler option and uses .private_extern annotations in 20*7c3d14c8STreehugger Robot# assembly files. 21*7c3d14c8STreehugger Robot# 22*7c3d14c8STreehugger Robot# FIXME: Make this more portable. When that is done, it should probably be the 23*7c3d14c8STreehugger Robot# default. 24*7c3d14c8STreehugger RobotVISIBILITY_HIDDEN := 0 25*7c3d14c8STreehugger Robot 26*7c3d14c8STreehugger Robot# Whether the library is being built for kernel use. 27*7c3d14c8STreehugger RobotKERNEL_USE := 0 28*7c3d14c8STreehugger Robot 29*7c3d14c8STreehugger Robot# Whether the library should be built as a shared object. 30*7c3d14c8STreehugger RobotSHARED_LIBRARY := 0 31*7c3d14c8STreehugger Robot 32*7c3d14c8STreehugger Robot# Miscellaneous tools. 33*7c3d14c8STreehugger Robot 34*7c3d14c8STreehugger RobotAR := ar 35*7c3d14c8STreehugger Robot# FIXME: Remove these pipes once ranlib errors are fixed. 36*7c3d14c8STreehugger RobotARFLAGS := cru 2> /dev/null 37*7c3d14c8STreehugger Robot 38*7c3d14c8STreehugger RobotLDFLAGS := 39*7c3d14c8STreehugger Robot 40*7c3d14c8STreehugger RobotRANLIB := ranlib 41*7c3d14c8STreehugger Robot# FIXME: Remove these pipes once ranlib errors are fixed. 42*7c3d14c8STreehugger RobotRANLIBFLAGS := 2> /dev/null 43*7c3d14c8STreehugger Robot 44*7c3d14c8STreehugger RobotSTRIP := strip 45*7c3d14c8STreehugger RobotLIPO := lipo 46*7c3d14c8STreehugger RobotDSYMUTIL := dsymutil 47*7c3d14c8STreehugger Robot 48*7c3d14c8STreehugger RobotSHARED_LIBRARY_SUFFIX := so 49