| version 1.271, 2007/03/18 09:08:45 |
version 1.271.4.2, 2008/03/23 00:45:37 |
|
|
| # $NetBSD$ |
# bsd.lib.mk,v 1.271.4.1 2007/11/06 23:13:21 matt Exp |
| # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 |
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 |
| |
|
| .include <bsd.init.mk> |
.include <bsd.init.mk> |
| Line 139 CPPPICFLAGS?= -DPIC -DBIGPIC |
|
| Line 139 CPPPICFLAGS?= -DPIC -DBIGPIC |
|
| CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS} |
CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS} |
| APICFLAGS ?= -KPIC |
APICFLAGS ?= -KPIC |
| |
|
| .elif ${MACHINE_ARCH} == "ns32k" # } { |
|
| |
|
| # XXX no shared libraries yet on ns32k |
|
| FPICFLAGS?= |
|
| CPICFLAGS?= |
|
| CPPPICFLAGS?= |
|
| CAPICFLAGS?= |
|
| APICFLAGS?= |
|
| |
|
| .else # } { |
.else # } { |
| |
|
| # Platform-independent flags for NetBSD shared libraries |
# Platform-independent flags for NetBSD shared libraries |
|
|
| .if ${OBJECT_FMT} == "ELF" |
.if ${OBJECT_FMT} == "ELF" |
| SHLIB_SOVERSION= ${SHLIB_MAJOR} |
SHLIB_SOVERSION= ${SHLIB_MAJOR} |
| SHLIB_SHFLAGS= -Wl,-soname,lib${LIB}.so.${SHLIB_SOVERSION} |
SHLIB_SHFLAGS= -Wl,-soname,lib${LIB}.so.${SHLIB_SOVERSION} |
| |
SHLIB_SHFLAGS+= -Wl,--warn-shared-textrel |
| SHLIB_LDSTARTFILE?= ${DESTDIR}/usr/lib/crti.o ${_GCC_CRTBEGINS} |
SHLIB_LDSTARTFILE?= ${DESTDIR}/usr/lib/crti.o ${_GCC_CRTBEGINS} |
| SHLIB_LDENDFILE?= ${_GCC_CRTENDS} ${DESTDIR}/usr/lib/crtn.o |
SHLIB_LDENDFILE?= ${_GCC_CRTENDS} ${DESTDIR}/usr/lib/crtn.o |
| .endif |
.endif |