diff options
author | Daniel Dunbar <daniel@zuster.org> | 2012-09-07 19:57:23 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2012-09-07 19:57:23 +0000 |
commit | 8bc01cbd099b48d6c77d07e145d97104b43f4d38 (patch) | |
tree | 5bd628f5b6bb9f796b56f517e1e6984dc6bc650f /make | |
parent | f4e21fb6369497a271373ef4530e33a40e607542 (diff) | |
download | compiler-rt-8bc01cbd099b48d6c77d07e145d97104b43f4d38.tar.gz compiler-rt-8bc01cbd099b48d6c77d07e145d97104b43f4d38.tar.bz2 compiler-rt-8bc01cbd099b48d6c77d07e145d97104b43f4d38.tar.xz |
build: Add support for building dylibs.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163412 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'make')
-rw-r--r-- | make/lib_info.mk | 7 | ||||
-rw-r--r-- | make/options.mk | 9 |
2 files changed, 12 insertions, 4 deletions
diff --git a/make/lib_info.mk b/make/lib_info.mk index 2e85f640..81f96954 100644 --- a/make/lib_info.mk +++ b/make/lib_info.mk @@ -53,8 +53,7 @@ $(foreach key,$(SubDirKeys),\ # The names of all the available options. AvailableOptions := AR ARFLAGS \ - CC CFLAGS FUNCTIONS OPTIMIZED \ + CC CFLAGS LDFLAGS FUNCTIONS OPTIMIZED \ RANLIB RANLIBFLAGS \ - VISIBILITY_HIDDEN \ - KERNEL_USE \ - STRIP LIPO + VISIBILITY_HIDDEN KERNEL_USE \ + SHARED_LIBRARY STRIP LIPO diff --git a/make/options.mk b/make/options.mk index f695fc8d..d943e008 100644 --- a/make/options.mk +++ b/make/options.mk @@ -23,11 +23,20 @@ OPTIMIZED := 1 # default. VISIBILITY_HIDDEN := 0 +# Whether the library is being built for kernel use. +KERNEL_USE := 0 + +# Whether the library should be built as a shared object. +SHARED_LIBRARY := 0 + # Miscellaneous tools. AR := ar # FIXME: Remove these pipes once ranlib errors are fixed. ARFLAGS := cru 2> /dev/null + +LDFLAGS := + RANLIB := ranlib # FIXME: Remove these pipes once ranlib errors are fixed. RANLIBFLAGS := 2> /dev/null |