diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-08-07 23:12:15 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-08-07 23:12:15 +0000 |
commit | 42fe455d3789b8e7913f463f85cd5606d7fb6efe (patch) | |
tree | 39957f0730cc93b484282fff160d515f07e05769 /projects | |
parent | a5682853b9921bbb0dd2ee175c9bd44142d4819e (diff) |
For PR780:
1. Change the usage of LOADABLE_MODULE so that it implies all the things
necessary to make a loadable module. This reduces the user's burdern to
get a loadable module correctly built.
2. Document the usage of LOADABLE_MODULE in the MakefileGuide
3. Adjust the makefile for lib/Transforms/Hello to use the new specification
for building loadable modules
4. Adjust the sample project to not attempt to build a shared library for
its little library. This was just wasteful and not instructive at all.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29551 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'projects')
-rw-r--r-- | projects/sample/lib/sample/Makefile | 6 | ||||
-rw-r--r-- | projects/sample/tools/sample/Makefile | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/projects/sample/lib/sample/Makefile b/projects/sample/lib/sample/Makefile index 6b1ea05361..c85ae1a711 100644 --- a/projects/sample/lib/sample/Makefile +++ b/projects/sample/lib/sample/Makefile @@ -9,10 +9,8 @@ LEVEL=../.. # Give the name of a library. This will build a dynamic version. # LIBRARYNAME=sample -SHARED_LIBRARY=1 -LOADABLE_MODULE=1 -#DONT_BUILD_RELINKED=1 -#ARCHIVE_LIBRARY=1 +DONT_BUILD_RELINKED=1 +BUILD_ARCHIVE=1 # # Include Makefile.common so we know what to do. diff --git a/projects/sample/tools/sample/Makefile b/projects/sample/tools/sample/Makefile index 1127f75575..39da928329 100644 --- a/projects/sample/tools/sample/Makefile +++ b/projects/sample/tools/sample/Makefile @@ -14,7 +14,7 @@ TOOLNAME=sample # List libraries that we'll need # We use LIBS because sample is a dynamic library. # -USEDLIBS = sample +USEDLIBS = sample.a # # Include Makefile.common so we know what to do. |