##
-# Copyright (c) 2010 Apple Inc. All rights reserved.
+# Copyright (c) 2010-2011 Apple Inc. All rights reserved.
#
# @APPLE_LICENSE_HEADER_START@
#
TESTROOT = ../..
include ${TESTROOT}/include/common.makefile
+
#
# <rdar://problem/7438246> LTO with 'dead code strip' can't ignore unused functions with undefined references
+# <rdar://problem/10052396> LTO many have eliminated need for some undefines
#
run: all
all:
${CC} ${CCFLAGS} -flto bar.c -c -o bar.o
${CC} ${CCFLAGS} -flto main.c -c -o main.o
- ${CC} ${CCFLAGS} -dead_strip main.o bar.o -o main
+ ${CC} ${CCFLAGS} main.o bar.o -o main
+ ${CC} ${CCFLAGS} main.o bar.o -o main -dead_strip
${PASS_IFF_GOOD_MACHO} main
clean: