Bugzilla Bug 316964: Solaris linker flag changes: use -z ignore, add a

space between -z and its argument, pass -z as compiler flags rather than
linker flags via -Wl or -Qoption ld.  The patch is contributed by Boying Lu
<brian.lu@sun.com>.  r=wtc,sr=benjamin.smedberg.
This commit is contained in:
wtchang%redhat.com 2005-12-16 18:20:02 +00:00
Родитель a07fe6f634
Коммит 9bbf83f507
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -2015,19 +2015,19 @@ dnl the qsort routine under solaris is faulty
SYSTEM_MAKEDEPEND=
# $ORIGIN/.. is for shared libraries under components/ to locate shared
# libraries one level up (e.g. libnspr4.so)
LDFLAGS="$LDFLAGS -R '\$\$ORIGIN:\$\$ORIGIN/..'"
LDFLAGS="$LDFLAGS -z ignore -R '\$\$ORIGIN:\$\$ORIGIN/..'"
if test -z "$GNU_CC"; then
NS_USE_NATIVE=1
AC_DEFINE(NSCAP_DISABLE_DEBUG_PTR_TYPES)
CFLAGS="$CFLAGS -xstrconst -xbuiltin=%all"
CXXFLAGS="$CXXFLAGS -xbuiltin=%all -features=tmplife -norunpath"
LDFLAGS="-xildoff -zlazyload -zcombreloc $LDFLAGS"
LDFLAGS="-xildoff -z lazyload -z combreloc $LDFLAGS"
MOZ_OPTIMIZE_FLAGS="-xO4"
MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_FLAGS) $(DSO_LDOPTS) -h $@ -o $@'
MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_FLAGS) -G -Wl,-z -Wl,muldefs -h $@ -o $@'
MKSHLIB_FORCE_ALL='-Qoption ld -z,allextract'
MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_FLAGS) -G -z muldefs -h $@ -o $@'
MKSHLIB_FORCE_ALL='-z allextract'
MKSHLIB_UNFORCE_ALL=''
DSO_LDOPTS='-G -Qoption ld -z,muldefs'
DSO_LDOPTS='-G -z muldefs'
AR_LIST="$AR t"
AR_EXTRACT="$AR x"
AR_DELETE="$AR d"