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$.
This commit is contained in:
parent
3df6f40aa1
commit
0c07470770
@ -1,6 +1,4 @@
|
|||||||
#
|
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
#
|
|
||||||
|
|
||||||
PROG= miniperl
|
PROG= miniperl
|
||||||
NOMAN= true
|
NOMAN= true
|
||||||
@ -8,8 +6,13 @@ CFLAGS+=-I${PERL5SRC} -I${.OBJDIR}
|
|||||||
SRCS= miniperlmain.c config.h
|
SRCS= miniperlmain.c config.h
|
||||||
# Miniperl _must_ be static!!
|
# Miniperl _must_ be static!!
|
||||||
NOSHARED= yes
|
NOSHARED= yes
|
||||||
DPADD= ${LIBPERL} ${LIBM} ${LIBCRYPT}
|
.if exists(${.OBJDIR}/../libperl/)
|
||||||
LDADD= -L${.OBJDIR}/../libperl -lperl -lm -lcrypt
|
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.
|
# Trick the bootstrap tools into thinking that miniperl is perl.
|
||||||
# This gets overwritten.
|
# This gets overwritten.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user