Daniel Dunbar | 48464e0 | 2010-01-18 06:49:33 +0000 | [diff] [blame] | 1 | # 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. |
| 7 | CC := gcc |
| 8 | |
| 9 | # The compiler flags to use. |
| 10 | CFLAGS := -Wall -Werror |
| 11 | |
| 12 | # The list of functions to include in the library. |
| 13 | FUNCTIONS := |
| 14 | |
| 15 | # Whether optimized function implementations should be used. |
| 16 | OPTIMIZED := 1 |
| 17 | |
Daniel Dunbar | 6a571fb | 2010-01-18 22:19:34 +0000 | [diff] [blame] | 18 | # 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. |
| 24 | VISIBILITY_HIDDEN := 0 |
| 25 | |
Daniel Dunbar | 8bc01cb | 2012-09-07 19:57:23 +0000 | [diff] [blame] | 26 | # Whether the library is being built for kernel use. |
| 27 | KERNEL_USE := 0 |
| 28 | |
| 29 | # Whether the library should be built as a shared object. |
| 30 | SHARED_LIBRARY := 0 |
| 31 | |
Daniel Dunbar | 48464e0 | 2010-01-18 06:49:33 +0000 | [diff] [blame] | 32 | # Miscellaneous tools. |
| 33 | |
| 34 | AR := ar |
| 35 | # FIXME: Remove these pipes once ranlib errors are fixed. |
| 36 | ARFLAGS := cru 2> /dev/null |
Daniel Dunbar | 8bc01cb | 2012-09-07 19:57:23 +0000 | [diff] [blame] | 37 | |
| 38 | LDFLAGS := |
| 39 | |
Daniel Dunbar | 48464e0 | 2010-01-18 06:49:33 +0000 | [diff] [blame] | 40 | RANLIB := ranlib |
| 41 | # FIXME: Remove these pipes once ranlib errors are fixed. |
| 42 | RANLIBFLAGS := 2> /dev/null |
Nick Kledzik | 9d55985 | 2011-06-20 23:47:02 +0000 | [diff] [blame] | 43 | |
| 44 | STRIP := strip |
| 45 | LIPO := lipo |
Nick Kledzik | c0973d6 | 2012-11-26 22:48:51 +0000 | [diff] [blame] | 46 | DSYMUTIL := dsymutil |
Evgeniy Stepanov | a69eb9a | 2012-10-24 14:03:41 +0000 | [diff] [blame] | 47 | |
| 48 | SHARED_LIBRARY_SUFFIX := so |