Fix build on MacOS 10.4 systems (suggested by Mike Smith).
authorJulien Lerouge <jlerouge@apple.com>
Fri, 27 Mar 2009 18:18:00 +0000 (18:18 +0000)
committerJulien Lerouge <jlerouge@apple.com>
Fri, 27 Mar 2009 18:18:00 +0000 (18:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67855 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index 5856e01c13c84338dfa58ee9cb55ab2cedea4742..a8af0b7e73bcd8349fc0b68bf20665013e745eab 100644 (file)
@@ -436,8 +436,8 @@ ifeq ($(OS),Darwin)
   # Get "4" out of 10.4 for later pieces in the makefile.
   DARWIN_MAJVERS := $(shell echo $(DARWIN_VERSION)| sed -E 's/10.([0-9]).*/\1/')
 
-  SharedLinkOptions=-Wl,-flat_namespace -Wl,-undefined -Wl,suppress -Wl,-dylib \
-                    -mmacosx-version-min=$(DARWIN_VERSION)
+  SharedLinkOptions=-Wl,-flat_namespace -Wl,-undefined -Wl,suppress \
+                    -dynamiclib -mmacosx-version-min=$(DARWIN_VERSION)
   TargetCommonOpts += -mmacosx-version-min=$(DARWIN_VERSION)
 else
   ifeq ($(OS),Cygwin)