Fix building into a different obj directory
authorChris Lattner <sabre@nondot.org>
Mon, 15 Sep 2003 19:20:11 +0000 (19:20 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Sep 2003 19:20:11 +0000 (19:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8542 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/GCCLibraries/crtend/Makefile

index f542f53d41d850d7216da2bad66524401b71d726..7af574c75e18b013fcdbb6cdf74960fd1ae21434 100644 (file)
@@ -3,7 +3,7 @@ BYTECODE_LIBRARY=1
 DONT_BUILD_RELINKED=1
 LIBRARYNAME=crtend
 
-Source = $(wildcard *.cpp) $(wildcard *.c) listend.ll
+Source = $(notdir $(wildcard $(SourceDir)/*.cpp $(SourceDir)/*.c)) listend.ll
 
 EXPORTED_SYMBOL_FILE = exported_symbol_list.lst