Search for and use the strip program and pass it to install for it
[oota-llvm.git] / Makefile.rules
index 54c378054b00307ab70a5d436c1602e19e40bb7f..657586ea29abd89d8c000ed6d83c1d89514e177d 100644 (file)
@@ -531,7 +531,7 @@ endif
 ifndef KEEP_SYMBOLS
   Strip := $(PLATFORMSTRIPOPTS)
   StripWarnMsg := "(without symbols)"
-  Install.StripFlag += -s
+  Install.StripFlag += -s --strip-program=$(STRIP)
 endif
 
 ifdef TOOL_NO_EXPORTS