Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/share/mk/bsd.lib.mk,v retrieving revision 1.203.2.1 retrieving revision 1.204 diff -u -p -r1.203.2.1 -r1.204 --- src/share/mk/bsd.lib.mk 2002/11/30 15:31:03 1.203.2.1 +++ src/share/mk/bsd.lib.mk 2002/07/01 19:29:31 1.204 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.lib.mk,v 1.203.2.1 2002/11/30 15:31:03 he Exp $ +# $NetBSD: bsd.lib.mk,v 1.204 2002/07/01 19:29:31 fredette Exp $ # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 .include @@ -124,6 +124,17 @@ CPPPICFLAGS?= -DPIC -DBIGPIC CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS} APICFLAGS ?= -KPIC +.elif ${MACHINE_ARCH} == "hppa" + +FPICFLAGS ?= -fPIC +CPICFLAGS?= -fPIC -DPIC +CPPPICFLAGS?= -DPIC +CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS} +APICFLAGS?= -k +# XXX libraries often need the millicode functions in libgcc.a, +# so we have to work around the -nostdlib: +LDADD+= `$(CC) -print-libgcc-file-name` + .else # Platform-independent flags for NetBSD a.out shared libraries @@ -397,12 +408,8 @@ LLIBS?= -lc llib-l${LIB}.ln: ${LOBJS} @echo building llib-l${LIB}.ln @rm -f llib-l${LIB}.ln -.if defined(DESTDIR) - @${LINT} -C${LIB} ${.ALLSRC} -L${DESTDIR}/usr/libdata ${LLIBS} -.else @${LINT} -C${LIB} ${.ALLSRC} ${LLIBS} .endif -.endif cleanlib: rm -f a.out [Ee]rrs mklog core *.core ${CLEANFILES}