build: Fix Darwin linker flags which weren't properly passed (and aren't valid).

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@143377 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Makefile b/lib/Makefile
index cd1013d..6054336 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -102,7 +102,6 @@
                            -Wl,-compatibility_version -Wl,1
     endif
     # extra options to override libtool defaults 
-    LLVMLibsOptions += -avoid-version
 	LLVMLibsOptions += -F/System/Library/Frameworks -F/System/Library/PrivateFrameworks
 	LLVMLibsOptions += -framework Foundation -framework CoreFoundation
 	LLVMLibsOptions += -framework CoreServices -framework Carbon
@@ -111,7 +110,7 @@
     # Mac OS X 10.4 and earlier tools do not allow a second -install_name on command line
     DARWIN_VERS := $(shell echo $(TARGET_TRIPLE) | sed 's/.*darwin\([0-9]*\).*/\1/')
     ifneq ($(DARWIN_VERS),8)
-       LLVMLibsOptions  += -no-undefined -Wl,-install_name \
+       LLVMLibsOptions  += -Wl,-install_name \
                            -Wl,"@executable_path/../lib/lib$(LIBRARYNAME)$(SHLIBEXT)"
     endif
 endif