version 1.240, 2003/11/11 11:43:45 |
version 1.244, 2004/01/07 15:27:08 |
Line 135 CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS} |
|
Line 135 CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS} |
|
APICFLAGS?= -k |
APICFLAGS?= -k |
# XXX libraries often need the millicode functions in libgcc.a, |
# XXX libraries often need the millicode functions in libgcc.a, |
# so we have to work around the -nostdlib: |
# so we have to work around the -nostdlib: |
LDADD+= `${CC} -print-libgcc-file-name` |
LDADD+= -L${_GCC_LIBGCCDIR} -lgcc_pic |
|
|
|
.elif ${MACHINE_ARCH} == "ns32k" |
|
|
|
# XXX no shared libraries yet on ns32k |
|
FPICFLAGS?= |
|
CPICFLAGS?= |
|
CPPPICFLAGS?= |
|
CAPICFLAGS?= |
|
APICFLAGS?= |
|
|
.else |
.else |
|
|
# Platform-independent flags for NetBSD a.out shared libraries |
# Platform-independent flags for NetBSD shared libraries |
SHLIB_SOVERSION=${SHLIB_FULLVERSION} |
SHLIB_SOVERSION=${SHLIB_FULLVERSION} |
SHLIB_SHFLAGS= |
SHLIB_SHFLAGS= |
FPICFLAGS ?= -fPIC |
FPICFLAGS ?= -fPIC |
|
|
|
|
realall: ${SRCS} ${ALLOBJS:O} ${_LIBS} |
realall: ${SRCS} ${ALLOBJS:O} ${_LIBS} |
|
|
|
.if !target(__archivebuild) |
__archivebuild: .USE |
__archivebuild: .USE |
${_MKTARGET_BUILD} |
${_MKTARGET_BUILD} |
rm -f ${.TARGET} |
rm -f ${.TARGET} |
${AR} cq ${.TARGET} `NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT}` |
${AR} cq ${.TARGET} `NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT}` |
${RANLIB} ${.TARGET} |
${RANLIB} ${.TARGET} |
|
.endif |
|
|
|
.if !target(__archiveinstall) |
__archiveinstall: .USE |
__archiveinstall: .USE |
${_MKTARGET_INSTALL} |
${_MKTARGET_INSTALL} |
${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ |
${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ |
${UPDATE:D:U-a "${RANLIB} -t"} ${SYSPKGTAG} ${.ALLSRC} ${.TARGET} |
${UPDATE:D:U-a "${RANLIB} -t"} ${SYSPKGTAG} ${.ALLSRC} ${.TARGET} |
|
.endif |
|
|
__archivesymlinkpic: .USE |
__archivesymlinkpic: .USE |
${_MKTARGET_INSTALL} |
${_MKTARGET_INSTALL} |
Line 434 lib${LIB}.so.${SHLIB_FULLVERSION}: ${SOL |
|
Line 447 lib${LIB}.so.${SHLIB_FULLVERSION}: ${SOL |
|
# We don't use INSTALL_SYMLINK here because this is just |
# We don't use INSTALL_SYMLINK here because this is just |
# happening inside the build directory/objdir. XXX Why does |
# happening inside the build directory/objdir. XXX Why does |
# this spend so much effort on libraries that aren't live??? XXX |
# this spend so much effort on libraries that aren't live??? XXX |
ln -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.${SHLIB_MAJOR}.tmp |
${HOST_LN} -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.${SHLIB_MAJOR}.tmp |
mv -f lib${LIB}.so.${SHLIB_MAJOR}.tmp lib${LIB}.so.${SHLIB_MAJOR} |
mv -f lib${LIB}.so.${SHLIB_MAJOR}.tmp lib${LIB}.so.${SHLIB_MAJOR} |
ln -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.tmp |
${HOST_LN} -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.tmp |
mv -f lib${LIB}.so.tmp lib${LIB}.so |
mv -f lib${LIB}.so.tmp lib${LIB}.so |
.endif |
.endif |
|
|