blob: 67197de03f47759a736ad37c0ef23f8dc932ab1d [file] [log] [blame]
Daniel Dunbar48464e02010-01-18 06:49:33 +00001# Options which may be overriden for platforms, etc.
2#
3# This list of such variables should be kept up to date with AvailableOptions in
4# 'make/lib_info.mk'.
5
6# The compiler to use.
7CC := gcc
8
9# The compiler flags to use.
10CFLAGS := -Wall -Werror
11
12# The list of functions to include in the library.
13FUNCTIONS :=
14
15# Whether optimized function implementations should be used.
16OPTIMIZED := 1
17
Daniel Dunbar6a571fb2010-01-18 22:19:34 +000018# Whether function definitions should use hidden visibility. This adds the
19# -fvisibility=hidden compiler option and uses .private_extern annotations in
20# assembly files.
21#
22# FIXME: Make this more portable. When that is done, it should probably be the
23# default.
24VISIBILITY_HIDDEN := 0
25
Daniel Dunbar8bc01cb2012-09-07 19:57:23 +000026# Whether the library is being built for kernel use.
27KERNEL_USE := 0
28
29# Whether the library should be built as a shared object.
30SHARED_LIBRARY := 0
31
Daniel Dunbar48464e02010-01-18 06:49:33 +000032# Miscellaneous tools.
33
34AR := ar
35# FIXME: Remove these pipes once ranlib errors are fixed.
36ARFLAGS := cru 2> /dev/null
Daniel Dunbar8bc01cb2012-09-07 19:57:23 +000037
38LDFLAGS :=
39
Daniel Dunbar48464e02010-01-18 06:49:33 +000040RANLIB := ranlib
41# FIXME: Remove these pipes once ranlib errors are fixed.
42RANLIBFLAGS := 2> /dev/null
Nick Kledzik9d559852011-06-20 23:47:02 +000043
44STRIP := strip
45LIPO := lipo
Nick Kledzikc0973d62012-11-26 22:48:51 +000046DSYMUTIL := dsymutil
Evgeniy Stepanova69eb9a2012-10-24 14:03:41 +000047
48SHARED_LIBRARY_SUFFIX := so