110-darwin_version_detect.patch 619 B

12345678910111213141516
  1. --- a/Makefile.rules
  2. +++ b/Makefile.rules
  3. @@ -506,11 +506,13 @@ endif
  4. #--------------------------------------------------------------------
  5. ifeq ($(HOST_OS),Darwin)
  6. + ifndef DARWIN_VERSION
  7. DARWIN_VERSION := `sw_vers -productVersion`
  8. # Strip a number like 10.4.7 to 10.4
  9. DARWIN_VERSION := $(shell echo $(DARWIN_VERSION)| sed -E 's/(10.[0-9]).*/\1/')
  10. # Get "4" out of 10.4 for later pieces in the makefile.
  11. DARWIN_MAJVERS := $(shell echo $(DARWIN_VERSION)| sed -E 's/10.([0-9]).*/\1/')
  12. + endif
  13. SharedLinkOptions=-Wl,-flat_namespace -Wl,-undefined -Wl,suppress \
  14. -dynamiclib