提交 f968059c 编写于 作者: R Richard Levitte

To avoid any future programming glitches, let's make each and every

assignment (modulo those I missed) individual statements.
上级 0b900a5e
...@@ -64,7 +64,7 @@ CALC_VERSIONS= \ ...@@ -64,7 +64,7 @@ CALC_VERSIONS= \
if [ -n "$(LIBVERSION)$(LIBCOMPATVERSIONS)" ]; then \ if [ -n "$(LIBVERSION)$(LIBCOMPATVERSIONS)" ]; then \
prev=""; \ prev=""; \
for v in `echo "$(LIBVERSION) $(LIBCOMPATVERSIONS)" | cut -d';' -f1`; do \ for v in `echo "$(LIBVERSION) $(LIBCOMPATVERSIONS)" | cut -d';' -f1`; do \
SHLIB_SOVER_NODOT=$$v \ SHLIB_SOVER_NODOT=$$v; \
SHLIB_SOVER=.$$v; \ SHLIB_SOVER=.$$v; \
if [ -n "$$prev" ]; then \ if [ -n "$$prev" ]; then \
SHLIB_COMPAT="$$SHLIB_COMPAT .$$prev"; \ SHLIB_COMPAT="$$SHLIB_COMPAT .$$prev"; \
...@@ -98,7 +98,8 @@ SYMLINK_SO= \ ...@@ -98,7 +98,8 @@ SYMLINK_SO= \
LINK_SO_A= SHOBJECTS="lib$(LIBNAME).a $(LIBEXTRAS)"; $(LINK_SO) LINK_SO_A= SHOBJECTS="lib$(LIBNAME).a $(LIBEXTRAS)"; $(LINK_SO)
LINK_SO_O= SHOBJECTS="$(LIBEXTRAS)"; $(LINK_SO) LINK_SO_O= SHOBJECTS="$(LIBEXTRAS)"; $(LINK_SO)
LINK_SO_A_VIA_O= \ LINK_SO_A_VIA_O= \
SHOBJECTS=lib$(LIBNAME).o ALL=$$ALLSYMSFLAGS ALLSYMSFLAGS= NOALLSYMSFLAGS=; \ SHOBJECTS=lib$(LIBNAME).o; \
ALL=$$ALLSYMSFLAGS; ALLSYMSFLAGS=; NOALLSYMSFLAGS=; \
( $(DEBUG); \ ( $(DEBUG); \
ld $(LDFLAGS) -r -o lib$(LIBNAME).o $$ALL lib$(LIBNAME).a $(LIBEXTRAS) ); \ ld $(LDFLAGS) -r -o lib$(LIBNAME).o $$ALL lib$(LIBNAME).a $(LIBEXTRAS) ); \
$(LINK_SO) && rm -f $(LIBNAME).o $(LINK_SO) && rm -f $(LIBNAME).o
...@@ -111,12 +112,12 @@ LINK_SO_A_UNPACKED= \ ...@@ -111,12 +112,12 @@ LINK_SO_A_UNPACKED= \
DETECT_GNU_LD=(${CC} -Wl,-V /dev/null 2>&1 | grep '^GNU ld' )>/dev/null DETECT_GNU_LD=(${CC} -Wl,-V /dev/null 2>&1 | grep '^GNU ld' )>/dev/null
DO_GNU=$(CALC_VERSIONS); \ DO_GNU=$(CALC_VERSIONS); \
SHLIB=lib$(LIBNAME).so \ SHLIB=lib$(LIBNAME).so; \
SHLIB_SUFFIX= ; \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
ALLSYMSFLAGS='-Wl,--whole-archive' \ ALLSYMSFLAGS='-Wl,--whole-archive'; \
NOALLSYMSFLAGS='-Wl,--no-whole-archive' \ NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \
SHAREDFLAGS="-shared -Wl,-Bsymbolic -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX" \ SHAREDFLAGS="-shared -Wl,-Bsymbolic -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"; \
SHAREDCMD='$(CC)' SHAREDCMD='$(CC)'
link_o.gnu: link_o.gnu:
...@@ -127,12 +128,12 @@ link_a.gnu: ...@@ -127,12 +128,12 @@ link_a.gnu:
# For Darwin AKA Mac OS/X (dyld) # For Darwin AKA Mac OS/X (dyld)
link_o.darwin: link_o.darwin:
@ $(CALC_VERSIONS); \ @ $(CALC_VERSIONS); \
SHLIB=lib$(LIBNAME) \ SHLIB=lib$(LIBNAME); \
SHLIB_SUFFIX=.dylib \ SHLIB_SUFFIX=.dylib; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
ALLSYMSFLAGS='-all_load' \ ALLSYMSFLAGS='-all_load'; \
NOALLSYMSFLAGS='' \ NOALLSYMSFLAGS=''; \
SHAREDFLAGS="-dynamiclib" \ SHAREDFLAGS="-dynamiclib"; \
SHAREDCMD='$(CC)'; \ SHAREDCMD='$(CC)'; \
if [ -n "$(LIBVERSION)" ]; then \ if [ -n "$(LIBVERSION)" ]; then \
SHAREDFLAGS="$$SHAREDFLAGS -current_version $(LIBVERSION)"; \ SHAREDFLAGS="$$SHAREDFLAGS -current_version $(LIBVERSION)"; \
...@@ -143,12 +144,12 @@ link_o.darwin: ...@@ -143,12 +144,12 @@ link_o.darwin:
$(LINK_SO_O) $(LINK_SO_O)
link_a.darwin: link_a.darwin:
@ $(CALC_VERSIONS); \ @ $(CALC_VERSIONS); \
SHLIB=lib$(LIBNAME) \ SHLIB=lib$(LIBNAME); \
SHLIB_SUFFIX=.dylib \ SHLIB_SUFFIX=.dylib; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
ALLSYMSFLAGS='-all_load' \ ALLSYMSFLAGS='-all_load'; \
NOALLSYMSFLAGS='' \ NOALLSYMSFLAGS=''; \
SHAREDFLAGS="-dynamiclib" \ SHAREDFLAGS="-dynamiclib"; \
SHAREDCMD='$(CC)'; \ SHAREDCMD='$(CC)'; \
if [ -n "$(LIBVERSION)" ]; then \ if [ -n "$(LIBVERSION)" ]; then \
SHAREDFLAGS="$$SHAREDFLAGS -current_version $(LIBVERSION)"; \ SHAREDFLAGS="$$SHAREDFLAGS -current_version $(LIBVERSION)"; \
...@@ -161,25 +162,25 @@ link_a.darwin: ...@@ -161,25 +162,25 @@ link_a.darwin:
link_o.cygwin: link_o.cygwin:
@ $(CALC_VERSIONS); \ @ $(CALC_VERSIONS); \
INHIBIT_SYMLINKS=yes; \ INHIBIT_SYMLINKS=yes; \
SHLIB=cyg$(LIBNAME) \ SHLIB=cyg$(LIBNAME); \
SHLIB_SUFFIX=.dll \ SHLIB_SUFFIX=.dll; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
SHLIB_SOVER=-$(LIBVERSION) \ SHLIB_SOVER=-$(LIBVERSION); \
ALLSYMSFLAGS='-Wl,--whole-archive' \ ALLSYMSFLAGS='-Wl,--whole-archive'; \
NOALLSYMSFLAGS='-Wl,--no-whole-archive' \ NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \
SHAREDFLAGS="-shared -Wl,-Bsymbolic -Wl,--out-implib,lib$(LIBNAME).dll.a" \ SHAREDFLAGS="-shared -Wl,-Bsymbolic -Wl,--out-implib,lib$(LIBNAME).dll.a"; \
SHAREDCMD='${CC}'; \ SHAREDCMD='${CC}'; \
$(LINK_SO_O) $(LINK_SO_O)
link_a.cygwin: link_a.cygwin:
@ $(CALC_VERSIONS); \ @ $(CALC_VERSIONS); \
INHIBIT_SYMLINKS=yes; \ INHIBIT_SYMLINKS=yes; \
SHLIB=cyg$(LIBNAME) \ SHLIB=cyg$(LIBNAME); \
SHLIB_SUFFIX=.dll \ SHLIB_SUFFIX=.dll; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
SHLIB_SOVER= \ SHLIB_SOVER=; \
ALLSYMSFLAGS='-Wl,--whole-archive' \ ALLSYMSFLAGS='-Wl,--whole-archive'; \
NOALLSYMSFLAGS='-Wl,--no-whole-archive' \ NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \
SHAREDFLAGS="-shared -Wl,-Bsymbolic -Wl,--out-implib,lib$(LIBNAME).dll.a" \ SHAREDFLAGS="-shared -Wl,-Bsymbolic -Wl,--out-implib,lib$(LIBNAME).dll.a"; \
SHAREDCMD='${CC}'; \ SHAREDCMD='${CC}'; \
$(LINK_SO_A) $(LINK_SO_A)
...@@ -187,19 +188,19 @@ link_o.alpha-osf1: ...@@ -187,19 +188,19 @@ link_o.alpha-osf1:
@ if ${DETECT_GNU_LD}; then \ @ if ${DETECT_GNU_LD}; then \
$(DO_GNU); \ $(DO_GNU); \
else \ else \
SHLIB=lib$(LIBNAME).so \ SHLIB=lib$(LIBNAME).so; \
SHLIB_SUFFIX= \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
SHLIB_HIST=`echo "$(LIBCOMPATVERSIONS)" | cut -d';' -f2 | sed -e 's/ */:/'`; \ SHLIB_HIST=`echo "$(LIBCOMPATVERSIONS)" | cut -d';' -f2 | sed -e 's/ */:/'`; \
if [ -n "$$SHLIB_HIST" ]; then \ if [ -n "$$SHLIB_HIST" ]; then \
SHLIB_HIST="$${SHLIB_HIST}:$(LIBVERSION)"; \ SHLIB_HIST="$${SHLIB_HIST}:$(LIBVERSION)"; \
else \ else \
SHLIB_HIST="$(LIBVERSION)"; \ SHLIB_HIST="$(LIBVERSION)"; \
fi; \ fi; \
SHLIB_SOVER= \ SHLIB_SOVER=; \
ALLSYMSFLAGS='-all' \ ALLSYMSFLAGS='-all'; \
NOALLSYMSFLAGS='-none' \ NOALLSYMSFLAGS='-none'; \
SHAREDFLAGS="-shared" \ SHAREDFLAGS="-shared"; \
SHAREDCMD='$(CC)'; \ SHAREDCMD='$(CC)'; \
if [ -n "$$SHLIB_HIST" ]; then \ if [ -n "$$SHLIB_HIST" ]; then \
SHAREDFLAGS="$$SHAREDFLAGS -set_version \"$$SHLIB_HIST\""; \ SHAREDFLAGS="$$SHAREDFLAGS -set_version \"$$SHLIB_HIST\""; \
...@@ -210,19 +211,19 @@ link_a.alpha-osf1: ...@@ -210,19 +211,19 @@ link_a.alpha-osf1:
@ if ${DETECT_GNU_LD}; then \ @ if ${DETECT_GNU_LD}; then \
$(DO_GNU); \ $(DO_GNU); \
else \ else \
SHLIB=lib$(LIBNAME).so \ SHLIB=lib$(LIBNAME).so; \
SHLIB_SUFFIX= \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
SHLIB_HIST=`echo "$(LIBCOMPATVERSIONS)" | cut -d';' -f2 | sed -e 's/ */:/'`; \ SHLIB_HIST=`echo "$(LIBCOMPATVERSIONS)" | cut -d';' -f2 | sed -e 's/ */:/'`; \
if [ -n "$$SHLIB_HIST" ]; then \ if [ -n "$$SHLIB_HIST" ]; then \
SHLIB_HIST="$${SHLIB_HIST}:$(LIBVERSION)"; \ SHLIB_HIST="$${SHLIB_HIST}:$(LIBVERSION)"; \
else \ else \
SHLIB_HIST="$(LIBVERSION)"; \ SHLIB_HIST="$(LIBVERSION)"; \
fi; \ fi; \
SHLIB_SOVER= \ SHLIB_SOVER=; \
ALLSYMSFLAGS='-all' \ ALLSYMSFLAGS='-all'; \
NOALLSYMSFLAGS='-none' \ NOALLSYMSFLAGS='-none'; \
SHAREDFLAGS="-shared" \ SHAREDFLAGS="-shared"; \
SHAREDCMD='$(CC)'; \ SHAREDCMD='$(CC)'; \
if [ -n "$$SHLIB_HIST" ]; then \ if [ -n "$$SHLIB_HIST" ]; then \
SHAREDFLAGS="$$SHAREDFLAGS -set_version \"$$SHLIB_HIST\""; \ SHAREDFLAGS="$$SHAREDFLAGS -set_version \"$$SHLIB_HIST\""; \
...@@ -236,19 +237,19 @@ link_o.tru64: ...@@ -236,19 +237,19 @@ link_o.tru64:
@ if ${DETECT_GNU_LD}; then \ @ if ${DETECT_GNU_LD}; then \
$(DO_GNU); \ $(DO_GNU); \
else \ else \
SHLIB=lib$(LIBNAME).so \ SHLIB=lib$(LIBNAME).so; \
SHLIB_SUFFIX= \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
SHLIB_HIST=`echo "$(LIBCOMPATVERSIONS)" | cut -d';' -f2 | sed -e 's/ */:/'`; \ SHLIB_HIST=`echo "$(LIBCOMPATVERSIONS)" | cut -d';' -f2 | sed -e 's/ */:/'`; \
if [ -n "$$SHLIB_HIST" ]; then \ if [ -n "$$SHLIB_HIST" ]; then \
SHLIB_HIST="$${SHLIB_HIST}:$(LIBVERSION)"; \ SHLIB_HIST="$${SHLIB_HIST}:$(LIBVERSION)"; \
else \ else \
SHLIB_HIST="$(LIBVERSION)"; \ SHLIB_HIST="$(LIBVERSION)"; \
fi; \ fi; \
SHLIB_SOVER= \ SHLIB_SOVER=; \
ALLSYMSFLAGS='-all' \ ALLSYMSFLAGS='-all'; \
NOALLSYMSFLAGS='-none' \ NOALLSYMSFLAGS='-none'; \
SHAREDFLAGS="-shared -msym" \ SHAREDFLAGS="-shared -msym"; \
SHAREDCMD='$(CC)'; \ SHAREDCMD='$(CC)'; \
if [ -n "$$SHLIB_HIST" ]; then \ if [ -n "$$SHLIB_HIST" ]; then \
SHAREDFLAGS="$$SHAREDFLAGS -set_version \"$$SHLIB_HIST\""; \ SHAREDFLAGS="$$SHAREDFLAGS -set_version \"$$SHLIB_HIST\""; \
...@@ -259,19 +260,19 @@ link_a.tru64: ...@@ -259,19 +260,19 @@ link_a.tru64:
@ if ${DETECT_GNU_LD}; then \ @ if ${DETECT_GNU_LD}; then \
$(DO_GNU); \ $(DO_GNU); \
else \ else \
SHLIB=lib$(LIBNAME).so \ SHLIB=lib$(LIBNAME).so; \
SHLIB_SUFFIX= \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
SHLIB_HIST=`echo "$(LIBCOMPATVERSIONS)" | cut -d';' -f2 | sed -e 's/ */:/'`; \ SHLIB_HIST=`echo "$(LIBCOMPATVERSIONS)" | cut -d';' -f2 | sed -e 's/ */:/'`; \
if [ -n "$$SHLIB_HIST" ]; then \ if [ -n "$$SHLIB_HIST" ]; then \
SHLIB_HIST="$${SHLIB_HIST}:$(LIBVERSION)"; \ SHLIB_HIST="$${SHLIB_HIST}:$(LIBVERSION)"; \
else \ else \
SHLIB_HIST="$(LIBVERSION)"; \ SHLIB_HIST="$(LIBVERSION)"; \
fi; \ fi; \
SHLIB_SOVER= \ SHLIB_SOVER=; \
ALLSYMSFLAGS='-all' \ ALLSYMSFLAGS='-all'; \
NOALLSYMSFLAGS='-none' \ NOALLSYMSFLAGS='-none'; \
SHAREDFLAGS="-shared -msym" \ SHAREDFLAGS="-shared -msym"; \
SHAREDCMD='$(CC)'; \ SHAREDCMD='$(CC)'; \
if [ -n "$$SHLIB_HIST" ]; then \ if [ -n "$$SHLIB_HIST" ]; then \
SHAREDFLAGS="$$SHAREDFLAGS -set_version \"$$SHLIB_HIST\""; \ SHAREDFLAGS="$$SHAREDFLAGS -set_version \"$$SHLIB_HIST\""; \
...@@ -285,19 +286,19 @@ link_o.tru64-rpath: ...@@ -285,19 +286,19 @@ link_o.tru64-rpath:
@ if ${DETECT_GNU_LD}; then \ @ if ${DETECT_GNU_LD}; then \
$(DO_GNU); \ $(DO_GNU); \
else \ else \
SHLIB=lib$(LIBNAME).so \ SHLIB=lib$(LIBNAME).so; \
SHLIB_SUFFIX= \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
SHLIB_HIST=`echo "$(LIBCOMPATVERSIONS)" | cut -d';' -f2 | sed -e 's/ */:/'`; \ SHLIB_HIST=`echo "$(LIBCOMPATVERSIONS)" | cut -d';' -f2 | sed -e 's/ */:/'`; \
if [ -n "$$SHLIB_HIST" ]; then \ if [ -n "$$SHLIB_HIST" ]; then \
SHLIB_HIST="$${SHLIB_HIST}:$(LIBVERSION)"; \ SHLIB_HIST="$${SHLIB_HIST}:$(LIBVERSION)"; \
else \ else \
SHLIB_HIST="$(LIBVERSION)"; \ SHLIB_HIST="$(LIBVERSION)"; \
fi; \ fi; \
SHLIB_SOVER= \ SHLIB_SOVER=; \
ALLSYMSFLAGS='-all' \ ALLSYMSFLAGS='-all'; \
NOALLSYMSFLAGS='-none' \ NOALLSYMSFLAGS='-none'; \
SHAREDFLAGS="-shared -msym -rpath $(LIBRPATH)" \ SHAREDFLAGS="-shared -msym -rpath $(LIBRPATH)"; \
SHAREDCMD='$(CC)'; \ SHAREDCMD='$(CC)'; \
if [ -n "$$SHLIB_HIST" ]; then \ if [ -n "$$SHLIB_HIST" ]; then \
SHAREDFLAGS="$$SHAREDFLAGS -set_version \"$$SHLIB_HIST\""; \ SHAREDFLAGS="$$SHAREDFLAGS -set_version \"$$SHLIB_HIST\""; \
...@@ -308,19 +309,19 @@ link_a.tru64-rpath: ...@@ -308,19 +309,19 @@ link_a.tru64-rpath:
@ if ${DETECT_GNU_LD}; then \ @ if ${DETECT_GNU_LD}; then \
$(DO_GNU); \ $(DO_GNU); \
else \ else \
SHLIB=lib$(LIBNAME).so \ SHLIB=lib$(LIBNAME).so; \
SHLIB_SUFFIX= \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
SHLIB_HIST=`echo "$(LIBCOMPATVERSIONS)" | cut -d';' -f2 | sed -e 's/ */:/'`; \ SHLIB_HIST=`echo "$(LIBCOMPATVERSIONS)" | cut -d';' -f2 | sed -e 's/ */:/'`; \
if [ -n "$$SHLIB_HIST" ]; then \ if [ -n "$$SHLIB_HIST" ]; then \
SHLIB_HIST="$${SHLIB_HIST}:$(LIBVERSION)"; \ SHLIB_HIST="$${SHLIB_HIST}:$(LIBVERSION)"; \
else \ else \
SHLIB_HIST="$(LIBVERSION)"; \ SHLIB_HIST="$(LIBVERSION)"; \
fi; \ fi; \
SHLIB_SOVER= \ SHLIB_SOVER=; \
ALLSYMSFLAGS='-all' \ ALLSYMSFLAGS='-all'; \
NOALLSYMSFLAGS='-none' \ NOALLSYMSFLAGS='-none'; \
SHAREDFLAGS="-shared -msym -rpath $(LIBRPATH)" \ SHAREDFLAGS="-shared -msym -rpath $(LIBRPATH)"; \
SHAREDCMD='$(CC)'; \ SHAREDCMD='$(CC)'; \
if [ -n "$$SHLIB_HIST" ]; then \ if [ -n "$$SHLIB_HIST" ]; then \
SHAREDFLAGS="$$SHAREDFLAGS -set_version \"$$SHLIB_HIST\""; \ SHAREDFLAGS="$$SHAREDFLAGS -set_version \"$$SHLIB_HIST\""; \
...@@ -335,12 +336,12 @@ link_o.solaris: ...@@ -335,12 +336,12 @@ link_o.solaris:
$(CALC_VERSIONS); \ $(CALC_VERSIONS); \
MINUSZ='-z '; \ MINUSZ='-z '; \
(${CC} -v 2>&1 | grep gcc) > /dev/null && MINUSZ='-Wl,-z,'; \ (${CC} -v 2>&1 | grep gcc) > /dev/null && MINUSZ='-Wl,-z,'; \
SHLIB=lib$(LIBNAME).so \ SHLIB=lib$(LIBNAME).so; \
SHLIB_SUFFIX= ; \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
ALLSYMSFLAGS="$${MINUSZ}allextract" \ ALLSYMSFLAGS="$${MINUSZ}allextract"; \
NOALLSYMSFLAGS="$${MINUSZ}defaultextract" \ NOALLSYMSFLAGS="$${MINUSZ}defaultextract"; \
SHAREDFLAGS="-G -dy -z text -h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX" \ SHAREDFLAGS="-G -dy -z text -h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"; \
SHAREDCMD='$(CC)'; \ SHAREDCMD='$(CC)'; \
fi; \ fi; \
$(LINK_SO_O) $(LINK_SO_O)
...@@ -351,12 +352,12 @@ link_a.solaris: ...@@ -351,12 +352,12 @@ link_a.solaris:
$(CALC_VERSIONS); \ $(CALC_VERSIONS); \
MINUSZ='-z '; \ MINUSZ='-z '; \
(${CC} -v 2>&1 | grep gcc) > /dev/null && MINUSZ='-Wl,-z,'; \ (${CC} -v 2>&1 | grep gcc) > /dev/null && MINUSZ='-Wl,-z,'; \
SHLIB=lib$(LIBNAME).so \ SHLIB=lib$(LIBNAME).so; \
SHLIB_SUFFIX= ;\ SHLIB_SUFFIX=;\
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
ALLSYMSFLAGS="$${MINUSZ}allextract" \ ALLSYMSFLAGS="$${MINUSZ}allextract"; \
NOALLSYMSFLAGS="$${MINUSZ}defaultextract" \ NOALLSYMSFLAGS="$${MINUSZ}defaultextract"; \
SHAREDFLAGS="-G -dy -z text -h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX" \ SHAREDFLAGS="-G -dy -z text -h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"; \
SHAREDCMD='$(CC)'; \ SHAREDCMD='$(CC)'; \
fi; \ fi; \
$(LINK_SO_A) $(LINK_SO_A)
...@@ -368,12 +369,12 @@ link_o.svr3: ...@@ -368,12 +369,12 @@ link_o.svr3:
$(DO_GNU); \ $(DO_GNU); \
else \ else \
$(CALC_VERSIONS); \ $(CALC_VERSIONS); \
SHLIB=lib$(LIBNAME).so \ SHLIB=lib$(LIBNAME).so; \
SHLIB_SUFFIX= ; \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
ALLSYMSFLAGS='-z allextract' \ ALLSYMSFLAGS='-z allextract'; \
NOALLSYMSFLAGS='' \ NOALLSYMSFLAGS=''; \
SHAREDFLAGS="-G -h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX" \ SHAREDFLAGS="-G -h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"; \
SHAREDCMD='$(CC)'; \ SHAREDCMD='$(CC)'; \
fi; \ fi; \
$(LINK_SO_O) $(LINK_SO_O)
...@@ -382,12 +383,12 @@ link_a.svr3: ...@@ -382,12 +383,12 @@ link_a.svr3:
$(DO_GNU); \ $(DO_GNU); \
else \ else \
$(CALC_VERSIONS); \ $(CALC_VERSIONS); \
SHLIB=lib$(LIBNAME).so \ SHLIB=lib$(LIBNAME).so; \
SHLIB_SUFFIX= ; \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
ALLSYMSFLAGS='-z allextract' \ ALLSYMSFLAGS='-z allextract'; \
NOALLSYMSFLAGS='' \ NOALLSYMSFLAGS=''; \
SHAREDFLAGS="-G -h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX" \ SHAREDFLAGS="-G -h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"; \
SHAREDCMD='$(CC)'; \ SHAREDCMD='$(CC)'; \
fi; \ fi; \
$(LINK_SO_A_UNPACKED) $(LINK_SO_A_UNPACKED)
...@@ -397,12 +398,12 @@ link_o.irix: ...@@ -397,12 +398,12 @@ link_o.irix:
$(DO_GNU); \ $(DO_GNU); \
else \ else \
$(CALC_VERSIONS); \ $(CALC_VERSIONS); \
SHLIB=lib$(LIBNAME).so \ SHLIB=lib$(LIBNAME).so; \
SHLIB_SUFFIX= ; \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
ALLSYMSFLAGS='-all' \ ALLSYMSFLAGS='-all'; \
NOALLSYMSFLAGS='' \ NOALLSYMSFLAGS=''; \
SHAREDFLAGS="-shared -Wl,-soname,$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX" \ SHAREDFLAGS="-shared -Wl,-soname,$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"; \
SHAREDCMD='$(CC)'; \ SHAREDCMD='$(CC)'; \
fi; \ fi; \
$(LINK_SO_O) $(LINK_SO_O)
...@@ -411,12 +412,12 @@ link_a.irix: ...@@ -411,12 +412,12 @@ link_a.irix:
$(DO_GNU); \ $(DO_GNU); \
else \ else \
$(CALC_VERSIONS); \ $(CALC_VERSIONS); \
SHLIB=lib$(LIBNAME).so \ SHLIB=lib$(LIBNAME).so; \
SHLIB_SUFFIX= ; \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
ALLSYMSFLAGS='-all' \ ALLSYMSFLAGS='-all'; \
NOALLSYMSFLAGS='' \ NOALLSYMSFLAGS=''; \
SHAREDFLAGS="-shared -Wl,-soname,$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX" \ SHAREDFLAGS="-shared -Wl,-soname,$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"; \
SHAREDCMD='$(CC)'; \ SHAREDCMD='$(CC)'; \
fi; \ fi; \
$(LINK_SO_A) $(LINK_SO_A)
...@@ -433,22 +434,22 @@ link_a.irix: ...@@ -433,22 +434,22 @@ link_a.irix:
# #
link_o.hpux32: link_o.hpux32:
@ $(CALC_VERSIONS); \ @ $(CALC_VERSIONS); \
SHLIB=lib$(LIBNAME).sl \ SHLIB=lib$(LIBNAME).sl; \
SHLIB_SUFFIX= ; \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
ALLSYMSFLAGS='-Fl' \ ALLSYMSFLAGS='-Fl'; \
NOALLSYMSFLAGS='' \ NOALLSYMSFLAGS=''; \
SHAREDFLAGS="+vnocompatwarnings -b -z +s +h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX" \ SHAREDFLAGS="+vnocompatwarnings -b -z +s +h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"; \
SHAREDCMD='/usr/ccs/bin/ld'; \ SHAREDCMD='/usr/ccs/bin/ld'; \
$(LINK_SO_O) && chmod a=rx $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX $(LINK_SO_O) && chmod a=rx $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX
link_a.hpux32: link_a.hpux32:
@ $(CALC_VERSIONS); \ @ $(CALC_VERSIONS); \
SHLIB=lib$(LIBNAME).sl \ SHLIB=lib$(LIBNAME).sl; \
SHLIB_SUFFIX= ; \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
ALLSYMSFLAGS='-Fl' \ ALLSYMSFLAGS='-Fl'; \
NOALLSYMSFLAGS='' \ NOALLSYMSFLAGS=''; \
SHAREDFLAGS="+vnocompatwarnings -b -z +s +h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX" \ SHAREDFLAGS="+vnocompatwarnings -b -z +s +h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"; \
SHAREDCMD='/usr/ccs/bin/ld'; \ SHAREDCMD='/usr/ccs/bin/ld'; \
$(LINK_SO_A) && chmod a=rx $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX $(LINK_SO_A) && chmod a=rx $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX
...@@ -462,64 +463,64 @@ link_a.hpux32: ...@@ -462,64 +463,64 @@ link_a.hpux32:
# #
link_o.hpux64: link_o.hpux64:
@ $(CALC_VERSIONS); \ @ $(CALC_VERSIONS); \
SHLIB=lib$(LIBNAME).sl \ SHLIB=lib$(LIBNAME).sl; \
SHLIB_SUFFIX= ; \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
ALLSYMSFLAGS='+forceload' \ ALLSYMSFLAGS='+forceload'; \
NOALLSYMSFLAGS='' \ NOALLSYMSFLAGS=''; \
SHAREDFLAGS="-b -z +h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX" \ SHAREDFLAGS="-b -z +h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"; \
SHAREDCMD='/usr/ccs/bin/ld'; \ SHAREDCMD='/usr/ccs/bin/ld'; \
$(LINK_SO_O) && chmod a=rx $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX $(LINK_SO_O) && chmod a=rx $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX
link_a.hpux64: link_a.hpux64:
@ $(CALC_VERSIONS); \ @ $(CALC_VERSIONS); \
SHLIB=lib$(LIBNAME).sl \ SHLIB=lib$(LIBNAME).sl; \
SHLIB_SUFFIX= ; \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
ALLSYMSFLAGS='+forceload' \ ALLSYMSFLAGS='+forceload'; \
NOALLSYMSFLAGS='' \ NOALLSYMSFLAGS=''; \
SHAREDFLAGS="-b -z +h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX" \ SHAREDFLAGS="-b -z +h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"; \
SHAREDCMD='/usr/ccs/bin/ld'; \ SHAREDCMD='/usr/ccs/bin/ld'; \
$(LINK_SO_A) && chmod a=rx $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX $(LINK_SO_A) && chmod a=rx $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX
link_o.aix: link_o.aix:
@ $(CALC_VERSIONS); \ @ $(CALC_VERSIONS); \
SHLIB=lib$(LIBNAME).so \ SHLIB=lib$(LIBNAME).so; \
SHLIB_SUFFIX= ; \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
ALLSYMSFLAGS='-bnogc' \ ALLSYMSFLAGS='-bnogc'; \
NOALLSYMSFLAGS='' \ NOALLSYMSFLAGS=''; \
SHAREDFLAGS='-G -bE:lib$(LIBNAME).exp -bM:SRE' \ SHAREDFLAGS='-G -bE:lib$(LIBNAME).exp -bM:SRE'; \
SHAREDCMD='$(CC)'; \ SHAREDCMD='$(CC)'; \
$(LINK_SO_O) $(LINK_SO_O)
link_a.aix: link_a.aix:
@ $(CALC_VERSIONS); \ @ $(CALC_VERSIONS); \
SHLIB=lib$(LIBNAME).so \ SHLIB=lib$(LIBNAME).so; \
SHLIB_SUFFIX= \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
ALLSYMSFLAGS='-bnogc' \ ALLSYMSFLAGS='-bnogc'; \
NOALLSYMSFLAGS='' \ NOALLSYMSFLAGS=''; \
SHAREDFLAGS='-G -bE:lib$(LIBNAME).exp -bM:SRE' \ SHAREDFLAGS='-G -bE:lib$(LIBNAME).exp -bM:SRE'; \
SHAREDCMD='$(CC)'; \ SHAREDCMD='$(CC)'; \
$(LINK_SO_A_VIA_O) $(LINK_SO_A_VIA_O)
link_o.reliantunix: link_o.reliantunix:
@ $(CALC_VERSIONS); \ @ $(CALC_VERSIONS); \
SHLIB=lib$(LIBNAME).so \ SHLIB=lib$(LIBNAME).so; \
SHLIB_SUFFIX= \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
ALLSYMSFLAGS= \ ALLSYMSFLAGS=; \
NOALLSYMSFLAGS='' \ NOALLSYMSFLAGS=''; \
SHAREDFLAGS='-G' \ SHAREDFLAGS='-G'; \
SHAREDCMD='$(CC)'; \ SHAREDCMD='$(CC)'; \
$(LINK_SO_O) $(LINK_SO_O)
link_a.reliantunix: link_a.reliantunix:
@ $(CALC_VERSIONS); \ @ $(CALC_VERSIONS); \
SHLIB=lib$(LIBNAME).so \ SHLIB=lib$(LIBNAME).so; \
SHLIB_SUFFIX= \ SHLIB_SUFFIX=; \
LIBDEPS="$(LIBDEPS) -lc" \ LIBDEPS="$(LIBDEPS) -lc"; \
ALLSYMSFLAGS= \ ALLSYMSFLAGS=; \
NOALLSYMSFLAGS='' \ NOALLSYMSFLAGS=''; \
SHAREDFLAGS='-G' \ SHAREDFLAGS='-G'; \
SHAREDCMD='$(CC)'; \ SHAREDCMD='$(CC)'; \
$(LINK_SO_A_UNPACKED) $(LINK_SO_A_UNPACKED)
...@@ -531,7 +532,7 @@ symlink.aix symlink.reliantunix: ...@@ -531,7 +532,7 @@ symlink.aix symlink.reliantunix:
$(SYMLINK_SO) $(SYMLINK_SO)
symlink.darwin: symlink.darwin:
@ $(CALC_VERSIONS); \ @ $(CALC_VERSIONS); \
SHLIB=lib$(LIBNAME) \ SHLIB=lib$(LIBNAME); \
SHLIB_SUFFIX=.dylib; \ SHLIB_SUFFIX=.dylib; \
$(SYMLINK_SO) $(SYMLINK_SO)
symlink.hpux32 symlink.hpux64: symlink.hpux32 symlink.hpux64:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册