diff options
author | bde <bde@FreeBSD.org> | 2000-03-27 18:29:46 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2000-03-27 18:29:46 +0000 |
commit | 0c07470770f70fcf4958f45f9065c5cd3f418f2d (patch) | |
tree | bb80705651f61c59e22e28ffea573b0f9bbe4471 /gnu/usr.bin | |
parent | 3df6f40aa1cf6e95d7b83c659df524537d53e5fa (diff) | |
download | FreeBSD-src-0c07470770f70fcf4958f45f9065c5cd3f418f2d.zip FreeBSD-src-0c07470770f70fcf4958f45f9065c5cd3f418f2d.tar.gz |
Fixed wrong path to libperl in DPADD.
Fixed wrong path to libperl in LDADD in some funky objdir setups.
Use ${dir}/libfoo.a instead of -L${dir} -lfoo for local static libraries
in LDADD so that `make checkdpadd' doesn't report non-errors.
Fixed misformatting of $FreeBSD$.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/perl/miniperl/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gnu/usr.bin/perl/miniperl/Makefile b/gnu/usr.bin/perl/miniperl/Makefile index e8c6214..351539d 100644 --- a/gnu/usr.bin/perl/miniperl/Makefile +++ b/gnu/usr.bin/perl/miniperl/Makefile @@ -1,6 +1,4 @@ -# # $FreeBSD$ -# PROG= miniperl NOMAN= true @@ -8,8 +6,13 @@ CFLAGS+=-I${PERL5SRC} -I${.OBJDIR} SRCS= miniperlmain.c config.h # Miniperl _must_ be static!! NOSHARED= yes -DPADD= ${LIBPERL} ${LIBM} ${LIBCRYPT} -LDADD= -L${.OBJDIR}/../libperl -lperl -lm -lcrypt +.if exists(${.OBJDIR}/../libperl/) +MYLIBPERL= ${.OBJDIR}/../libperl/libperl.a +.else +MYLIBPERL= ${.CURDIR}/../libperl/libperl.a +.endif +DPADD= ${MYLIBPERL} ${LIBM} ${LIBCRYPT} +LDADD= ${MYLIBPERL} -lm -lcrypt # Trick the bootstrap tools into thinking that miniperl is perl. # This gets overwritten. |