summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-27 22:06:23 +0000
committerChris Lattner <sabre@nondot.org>2006-01-27 22:06:23 +0000
commit3880f1afd6a6cba0bcd5baed5a35cf325fafa42c (patch)
tree34728dc4e3fa2b74aba14cbdd3a7946fef264434 /runtime
parent1faf544c1205b3ca09fe1c35f89393483376b49d (diff)
downloadllvm-3880f1afd6a6cba0bcd5baed5a35cf325fafa42c.tar.gz
llvm-3880f1afd6a6cba0bcd5baed5a35cf325fafa42c.tar.bz2
llvm-3880f1afd6a6cba0bcd5baed5a35cf325fafa42c.tar.xz
Remove the only use of FAKE_SOURCES
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime')
-rw-r--r--runtime/GCCLibraries/crtend/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/runtime/GCCLibraries/crtend/Makefile b/runtime/GCCLibraries/crtend/Makefile
index 32077b292d..6792a36fa5 100644
--- a/runtime/GCCLibraries/crtend/Makefile
+++ b/runtime/GCCLibraries/crtend/Makefile
@@ -17,7 +17,6 @@
LEVEL = ../../..
DONT_BUILD_RELINKED = 1
-BYTECODE_LIBRARY = 1
LIBRARYNAME = crtend
BYTECODE_DESTINATION = $(CFERuntimeLibDir)
@@ -28,8 +27,6 @@ BYTECODE_DESTINATION = $(CFERuntimeLibDir)
# FAKE_SOURCES for dependencies, distribution, etc. It is assumed the makefile
# will know how to build the objects eventhough the sources don't exist.
-FAKE_SOURCES := comp_main.c comp_genericeh.c comp_sjljeh.c
-
MainSrc := crtend.c listend.ll
GenericEHSrc := Exception.cpp
SJLJEHSrc := SJLJ-Exception.cpp
@@ -63,3 +60,14 @@ $(ObjDir)/comp_sjljeh.bc: $(SJLJEHObj)
$(Verb) $(GCCLD) -link-as-library \
-internalize-public-api-file=$(PROJ_SRC_DIR)/comp_sjljeh.lst \
$(SJLJEHObj) -o $@
+
+SYMBOLHACKEDOBJS := $(ObjDir)/comp_main.bc $(ObjDir)/comp_genericeh.bc \
+ $(ObjDir)/comp_sjljeh.bc
+
+all-local:: $(LibName.BCA)
+
+$(LibName.BCA): $(SYMBOLHACKEDOBJS) $(LibDir)/.dir $(LLVMToolDir)/llvm-ar
+ $(Echo) Building $(BuildMode) Bytecode Archive $(notdir $@)
+ $(Verb) $(RM) -f $@
+ $(Verb) $(LArchive) $@ $(SYMBOLHACKEDOBJS)
+