ICU-4682 Fixes for gcc on AIX
X-SVN-Rev: 18323
This commit is contained in:
parent
c65d5bcdb6
commit
5ee0eeeda8
@ -233,7 +233,7 @@ isPNameAcceptable(void* /*context*/,
|
||||
info->formatVersion[0] == PNAME_FORMAT_VERSION;
|
||||
}
|
||||
|
||||
static UBool U_CALLCONV pname_cleanup() {
|
||||
static UBool U_CALLCONV pname_cleanup(void) {
|
||||
if (UDATA) {
|
||||
udata_close(UDATA);
|
||||
UDATA = NULL;
|
||||
|
@ -226,7 +226,7 @@ static UnicodeSet *nxCache[_NORM_OPTIONS_SETS_MASK+1]={ NULL };
|
||||
U_CDECL_BEGIN
|
||||
|
||||
static UBool U_CALLCONV
|
||||
unorm_cleanup() {
|
||||
unorm_cleanup(void) {
|
||||
int32_t i;
|
||||
|
||||
#if !UNORM_HARDCODE_DATA
|
||||
|
@ -1,5 +1,5 @@
|
||||
## -*-makefile-*-
|
||||
## Copyright (c) 2003-2004 IBM, Ken Foskey, and others. All rights reserved.
|
||||
## Copyright (c) 2003-2005 IBM, Ken Foskey, and others. All rights reserved.
|
||||
##
|
||||
## Aix-specific setup (for gcc)
|
||||
##
|
||||
@ -29,6 +29,9 @@ LD_RPATH_PRE=
|
||||
## enable the shared lib loader
|
||||
LDFLAGS += -Wl,-bbigtoc
|
||||
|
||||
## These are the library specific LDFLAGS
|
||||
LDFLAGSICUDT=-nodefaultlibs -nostdlib
|
||||
|
||||
## We need to delete things prior to linking, or else we'll get
|
||||
## SEVERE ERROR: output file in use .. on AIX.
|
||||
## But, shell script version should NOT delete target as we don't
|
||||
@ -54,6 +57,9 @@ endif
|
||||
## Compiler switch to embed a library name. Not present on AIX.
|
||||
LD_SONAME =
|
||||
|
||||
## The type of assembly needed when pkgdata is used for generating shared libraries.
|
||||
GENCCODE_ASSEMBLY=-a xlc
|
||||
|
||||
## Shared object suffix
|
||||
SO= a
|
||||
A= a
|
||||
|
@ -107,7 +107,7 @@ static UnicodeString* OLSON_IDS = 0;
|
||||
#endif
|
||||
|
||||
U_CDECL_BEGIN
|
||||
static UBool U_CALLCONV timeZone_cleanup()
|
||||
static UBool U_CALLCONV timeZone_cleanup(void)
|
||||
{
|
||||
#ifdef U_USE_TIMEZONE_OBSOLETE_2_8
|
||||
delete []OLSON_IDS;
|
||||
|
@ -1,6 +1,6 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Copyright (C) 2000-2004, International Business Machines
|
||||
* Copyright (C) 2000-2005, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
@ -151,7 +151,10 @@ void pkg_mode_dll(UPKGOptions *o, FileStream *makefile, UErrorCode *status)
|
||||
"\t echo $$file >> $@; \\\n"
|
||||
"\tdone;\n\n");
|
||||
}
|
||||
|
||||
|
||||
sprintf(tmp, "TOCSYM= %s_dat \n\n", o->entryName); /* entrypoint not always shortname! */
|
||||
T_FileStream_writeLine(makefile, tmp);
|
||||
|
||||
pkg_mak_writeAssemblyHeader(makefile, o);
|
||||
|
||||
sprintf(tmp,"$(TEMP_DIR)/$(NAME)_dat.o : $(TEMP_DIR)/$(NAME)_dat.c\n"
|
||||
@ -184,9 +187,6 @@ void pkg_mode_dll(UPKGOptions *o, FileStream *makefile, UErrorCode *status)
|
||||
T_FileStream_writeLine(makefile, tmp);
|
||||
#endif
|
||||
|
||||
sprintf(tmp, "TOCSYM= %s_dat \n\n", o->entryName); /* entrypoint not always shortname! */
|
||||
T_FileStream_writeLine(makefile, tmp);
|
||||
|
||||
T_FileStream_writeLine(makefile, "BASE_OBJECTS= $(TOCOBJ) ");
|
||||
#ifdef OS400
|
||||
T_FileStream_writeLine(makefile, "$(ALLDATAOBJ) ");
|
||||
|
Loading…
Reference in New Issue
Block a user