Ignore debug intrinsics when computing dependences.
[oota-llvm.git] / Makefile.rules
index 6b271757dcbc8860801e8df607722b2918ccbf0c..bf13b26200c050eb4d9fbefe9274bcf19aca3a8b 100644 (file)
@@ -458,15 +458,18 @@ endif
 ifneq ($(OS),Darwin)
 ifdef TOOLNAME
 ifdef EXAMPLE_TOOL
-  LD.Flags += $(RPATH) -Wl,$(ExmplDir) -export-dynamic
+  LD.Flags += $(RPATH) -Wl,$(ExmplDir) $(RDYNAMIC)
 else
-  LD.Flags += $(RPATH) -Wl,$(ToolDir) -export-dynamic
+  LD.Flags += $(RPATH) -Wl,$(ToolDir) $(RDYNAMIC)
 endif
 endif
 endif
 
 ifeq ($(OS),Darwin)
   DARWIN_VERSION := `sw_vers -productVersion`
+  # Strip a number like 10.4.7 to 10.4
+  DARWIN_VERSION := $(shell echo $(DARWIN_VERSION)| sed -E 's/(10.[0-9]).*/\1/')
+     
   SharedLinkOptions=-Wl,-flat_namespace -Wl,-undefined -Wl,suppress -bundle \
                     -mmacosx-version-min=$(DARWIN_VERSION)
   CompileCommonOpts += -mmacosx-version-min=$(DARWIN_VERSION)
@@ -1838,7 +1841,7 @@ printvars::
 ###
 # Debugging
 
-# General debugging rule, use 'make print-XXX' to print the
+# General debugging rule, use 'make dbg-print-XXX' to print the
 # definition, value and origin of XXX.
-print-%:
+make-print-%:
        $(error PRINT: $(value $*) = "$($*)" (from $(origin $*)))