diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /intl/icu/source/config/mh-darwin | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'intl/icu/source/config/mh-darwin')
-rw-r--r-- | intl/icu/source/config/mh-darwin | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/intl/icu/source/config/mh-darwin b/intl/icu/source/config/mh-darwin new file mode 100644 index 000000000..fdab05192 --- /dev/null +++ b/intl/icu/source/config/mh-darwin @@ -0,0 +1,81 @@ +## -*-makefile-*- +## Copyright (C) 2016 and later: Unicode, Inc. and others. +## License & terms of use: http://www.unicode.org/copyright.html +## Darwin-specific setup (Darwin is the Mac OS X developer preview, successor +## to Rhapsody, aka Mac OS X Server) +## Copyright (c) 1999-2012 International Business Machines Corporation and +## others. All Rights Reserved. + +## Flags for position independent code +SHAREDLIBCFLAGS = -dynamic +SHAREDLIBCXXFLAGS = -dynamic +SHAREDLIBCPPFLAGS = + +# Do not export internal methods by default +LIBCFLAGS += -fvisibility=hidden +LIBCXXFLAGS += -fvisibility=hidden + +# Pad out the paths to the maximum possible length +LD_FLAGS += -headerpad_max_install_names + +# We do not need to see the stderr message that the archive was made. +ARFLAGS += -c + +## Commands to compile +COMPILE.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -fno-common -c +COMPILE.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) -fno-common -c + +## Commands to make a shared library +SHLIB.c= $(CC) -dynamiclib -dynamic $(CFLAGS) $(LDFLAGS) $(LD_SOOPTIONS) +SHLIB.cc= $(CXX) -dynamiclib -dynamic $(CXXFLAGS) $(LDFLAGS) $(LD_SOOPTIONS) + +## Compiler switches to embed a library name and version information +LD_SONAME = -Wl,-compatibility_version -Wl,$(SO_TARGET_VERSION_MAJOR) -Wl,-current_version -Wl,$(SO_TARGET_VERSION) -install_name @executable_path/$(notdir $(MIDDLE_SO_TARGET)) + +## Compiler switch to embed a runtime search path +LD_RPATH= +LD_RPATH_PRE= -Wl,-rpath, + +## Environment variable to set a runtime search path +LDLIBRARYPATH_ENVVAR = DYLD_LIBRARY_PATH + +GENCCODE_ASSEMBLY=-a gcc-darwin + +## Shared object suffix +SO= dylib +## Non-shared intermediate object suffix +STATIC_O = ao + +## Override Versioned target for a shared library. +FINAL_SO_TARGET= $(basename $(SO_TARGET)).$(SO_TARGET_VERSION).$(SO) +MIDDLE_SO_TARGET= $(basename $(SO_TARGET)).$(SO_TARGET_VERSION_MAJOR).$(SO) + +## Compilation and dependency rules +%.$(STATIC_O): $(srcdir)/%.c + $(call SILENT_COMPILE,$(strip $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS)) -MMD -MT "$*.d $*.o $*.$(STATIC_O)" -o $@ $<) +%.o: $(srcdir)/%.c + $(call SILENT_COMPILE,$(strip $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS)) -MMD -MT "$*.d $*.o $*.$(STATIC_O)" -o $@ $<) + +%.$(STATIC_O): $(srcdir)/%.cpp + $(call SILENT_COMPILE,$(strip $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS)) -MMD -MT "$*.d $*.o $*.$(STATIC_O)" -o $@ $<) +%.o: $(srcdir)/%.cpp + $(call SILENT_COMPILE,$(strip $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS)) -MMD -MT "$*.d $*.o $*.$(STATIC_O)" -o $@ $<) + +## Versioned libraries rules + +%.$(SO_TARGET_VERSION_MAJOR).$(SO): %.$(SO_TARGET_VERSION).$(SO) + $(RM) $@ && ln -s ${<F} $@ +%.$(SO): %.$(SO_TARGET_VERSION_MAJOR).$(SO) + $(RM) $@ && ln -s ${*F}.$(SO_TARGET_VERSION).$(SO) $@ + +# tzcode option +TZORIG_EXTRA_CFLAGS=-DSTD_INSPIRED + +# genren opts +GENREN_PL_OPTS=-x Mach-O -n '-g' -p '| c++filt' + +## Remove shared library 's' +STATIC_PREFIX_WHEN_USED = +STATIC_PREFIX = + +## End Darwin-specific setup |