| version 1.208, 2002/10/22 18:48:28 |
version 1.209, 2002/11/09 08:22:04 |
| Line 96 SHLIB_FULLVERSION=${SHLIB_MAJOR} |
|
| Line 96 SHLIB_FULLVERSION=${SHLIB_MAJOR} |
|
| # APICFLAGS: flags for ${AS} to assemble .[sS] to .so objects. |
# APICFLAGS: flags for ${AS} to assemble .[sS] to .so objects. |
| |
|
| .if ${MACHINE_ARCH} == "alpha" |
.if ${MACHINE_ARCH} == "alpha" |
| # Alpha-specific shared library flags |
|
| FPICFLAGS ?= -fPIC |
FPICFLAGS ?= -fPIC |
| CPICFLAGS ?= -fPIC -DPIC |
CPICFLAGS ?= -fPIC -DPIC |
| CPPPICFLAGS?= -DPIC |
CPPPICFLAGS?= -DPIC |
| CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS} |
CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS} |
| APICFLAGS ?= |
APICFLAGS ?= |
| |
|
| .elif ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" |
.elif ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" |
| # mips-specific shared library flags |
|
| |
|
| # On mips, all libs are compiled with ABIcalls, not just sharedlibs. |
# On MIPS, all libs are compiled with ABIcalls (and are thus PIC), |
| |
# not just sharedlibs. |
| MKPICLIB= no |
MKPICLIB= no |
| |
|
| # so turn shlib PIC flags on for ${AS}. |
# so turn shlib PIC flags on for ${AS}. |
| AINC+=-DABICALLS |
AINC+=-DABICALLS |
| AFLAGS+= -fPIC |
|
| AS+= -KPIC |
|
| |
|
| .elif ${MACHINE_ARCH} == "vax" && ${OBJECT_FMT} == "ELF" |
.elif ${MACHINE_ARCH} == "vax" && ${OBJECT_FMT} == "ELF" |
| |
|
| # On the VAX, all object are PIC by default, not just sharedlibs. |
# On the VAX, all object are PIC by default, not just sharedlibs. |
| MKPICLIB= no |
MKPICLIB= no |
| |
|
| .elif (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64") && \ |
.elif (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64") && \ |
| ${OBJECT_FMT} == "ELF" |
${OBJECT_FMT} == "ELF" |
| |
|
| # If you use -fPIC you need to define BIGPIC to turn on 32-bit |
# If you use -fPIC you need to define BIGPIC to turn on 32-bit |
| # relocations in asm code |
# relocations in asm code |
| FPICFLAGS ?= -fPIC |
FPICFLAGS ?= -fPIC |