Fix TestCppIncompleteTypes for android/clang

LDFLAGS contains some .a files. If it is specified before the relevant
object files, undefined symbol errors occur.

llvm-svn: 300048
This commit is contained in:
Pavel Labath 2017-04-12 10:59:34 +00:00
parent d3656a03ab
commit da7b15df70
1 changed files with 2 additions and 2 deletions

View File

@ -13,10 +13,10 @@ endif
all: limit nolimit
limit: main.o length_limit.o a.o
$(CXX) $(LDFLAGS) main.o length_limit.o a.o -o limit
$(CXX) main.o length_limit.o a.o -o limit $(LDFLAGS)
nolimit: main.o length_nolimit.o a.o
$(CXX) $(LDFLAGS) main.o length_nolimit.o a.o -o nolimit
$(CXX) main.o length_nolimit.o a.o -o nolimit $(LDFLAGS)
main.o: main.cpp
$(CXX) $(CFLAGS_LIMIT) main.cpp -o main.o