Some of Sun compiler drivers (well, one of those I have) collect all
options specified with -Wl in the beginnig of the ld command line which kind of obsoletes the idea as it's -z defaultextract that will be closest to lib*.a and not -z allextract:-(
This commit is contained in:
parent
db186beee4
commit
9f3864fde3
@ -357,10 +357,12 @@ do_solaris-shared:
|
|||||||
else \
|
else \
|
||||||
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
|
||||||
( PATH=/usr/ccs/bin:$$PATH ; export PATH; \
|
( PATH=/usr/ccs/bin:$$PATH ; export PATH; \
|
||||||
|
MINUSZ='-z '; \
|
||||||
|
(${CC} -v 2>&1 | grep gcc) > /dev/null && MINUSZ='-Wl,-z,'; \
|
||||||
set -x; ${CC} ${SHARED_LDFLAGS} -G -dy -z text \
|
set -x; ${CC} ${SHARED_LDFLAGS} -G -dy -z text \
|
||||||
-o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
-o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
-h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
-h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
-Wl,-z,allextract lib$$i.a -Wl,-z,defaultextract \
|
$${MINUSZ}allextract lib$$i.a $${MINUSZ}defaultextract \
|
||||||
$$libs ${EX_LIBS} -lc ) || exit 1; \
|
$$libs ${EX_LIBS} -lc ) || exit 1; \
|
||||||
libs="$$libs -l$$i"; \
|
libs="$$libs -l$$i"; \
|
||||||
done; \
|
done; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user