X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..f3c0d7a59d99c2a94c6b8822291f0e42be3773c9:/icuSources/config/mh-hpux-gcc diff --git a/icuSources/config/mh-hpux-gcc b/icuSources/config/mh-hpux-gcc index 71c8c5e2..c2e91227 100644 --- a/icuSources/config/mh-hpux-gcc +++ b/icuSources/config/mh-hpux-gcc @@ -1,9 +1,9 @@ ## -*-makefile-*- +## Copyright (C) 2016 and later: Unicode, Inc. and others. +## License & terms of use: http://www.unicode.org/copyright.html ## HPUX/gcc specific setup -## Copyright (c) 1999-2001, International Business Machines Corporation and +## Copyright (c) 1999-2012, International Business Machines Corporation and ## others. All Rights Reserved. -## -## $Id: mh-hpux-gcc,v 1.1.1.1 2003/02/05 21:31:17 avery Exp $ ## Commands to generate dependency files GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS) @@ -18,6 +18,10 @@ SHAREDLIBCPPFLAGS = -DPIC ## directory, at least. LD_DEFAULTPATH= -Wl,+b,.:'$$'ORIGIN/ +# Need to override this or we will get unworking assembly +#GENCCODE_ASSEMBLY=-a gcc +GENCCODE_ASSEMBLY= + # Get some handy functions defined properly DEFS += -D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L @@ -26,16 +30,19 @@ DEFS += -D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L LINK.c= $(CXX) $(DEFS) $(LDFLAGS) -Wl,+s $(LD_DEFAULTPATH) LINK.cc= $(CXX) $(DEFS) $(LDFLAGS) -Wl,+s $(LD_DEFAULTPATH) +## Shared library options +LD_SOOPTIONS= -Wl,-Bsymbolic + ## Commands to make a shared library -SHLIB.c= $(CC) $(DEFS) $(CFLAGS) $(LDFLAGS) $(SHAREDLIBCXXFLAGS) -shared -Wl,+s $(LD_DEFAULTPATH) -SHLIB.cc= $(CXX) $(DEFS) $(CXXFLAGS) $(LDFLAGS) $(SHAREDLIBCXXFLAGS) -shared -Wl,+s $(LD_DEFAULTPATH) +SHLIB.c= $(CC) $(DEFS) $(CFLAGS) $(LDFLAGS) $(SHAREDLIBCXXFLAGS) -shared -Wl,+s $(LD_DEFAULTPATH) $(LD_SOOPTIONS) +SHLIB.cc= $(CXX) $(DEFS) $(CXXFLAGS) $(LDFLAGS) $(SHAREDLIBCXXFLAGS) -shared -Wl,+s $(LD_DEFAULTPATH) $(LD_SOOPTIONS) ## Compiler switch to embed a runtime search path LD_RPATH= -Wl,+b, LD_RPATH_PRE= ## Compiler switch to embed a library name -LD_SONAME = -Wl,+h,$(MIDDLE_SO_TARGET) +LD_SONAME = -Wl,+h,$(notdir $(MIDDLE_SO_TARGET)) ## Environment variable to set a runtime search path LDLIBRARYPATH_ENVVAR = SHLIB_PATH @@ -56,8 +63,6 @@ STATIC_O = o %.o: $(srcdir)/%.cpp $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $< -../data/%.o: ../data/%.c - $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $< ## Dependency rules %.d : $(srcdir)/%.c @@ -75,9 +80,13 @@ STATIC_O = o ## Versioned libraries rules %.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION) - $(RM) $@ && ln -s $< $@ + $(RM) $@ && ln -s ${