mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-11528 Apply patch to fix build issues with AIX and GCC
X-SVN-Rev: 37485
This commit is contained in:
parent
7b7a214307
commit
519c6be02d
2 changed files with 9 additions and 1 deletions
|
@ -1,11 +1,14 @@
|
|||
## -*-makefile-*-
|
||||
## Copyright (c) 2003-2009 IBM, Ken Foskey, and others. All rights reserved.
|
||||
## Copyright (c) 2003-2015 IBM, Ken Foskey, and others. All rights reserved.
|
||||
##
|
||||
## Aix-specific setup (for gcc)
|
||||
##
|
||||
## Please note: AIX does NOT have library versioning per se (there is no 'SONAME' capability).
|
||||
## So, we are using 'windows' style library names, that is, libicuuc20.1.so instead of libicuuc.so.20.1
|
||||
|
||||
# When building stubdata, special considerations need to be made when building on AIX with GCC
|
||||
BUILD_HOST_ICU=AIX_GCC
|
||||
|
||||
# Certain files don't compile in -ansi mode (e.g. umutex.c, toolutil.c, and cdatatst.c)
|
||||
CFLAGS += -D_ALL_SOURCE
|
||||
|
||||
|
|
|
@ -126,7 +126,12 @@ endif
|
|||
|
||||
ifneq ($(ENABLE_SHARED),)
|
||||
$(SHARED_OBJECT): $(OBJECTS)
|
||||
ifeq ($(BUILD_HOST_ICU),AIX_GCC)
|
||||
$(SHLIB.c) $(LD_SONAME) $(OUTOPT)libicudata.so $^ $(LIBS)
|
||||
mv libicudata.so $@
|
||||
else
|
||||
$(SHLIB.c) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
|
||||
endif
|
||||
ifeq ($(ENABLE_RPATH),YES)
|
||||
ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),)
|
||||
$(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET))
|
||||
|
|
Loading…
Add table
Reference in a new issue