mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
6a18627411
commit
758aca682c
1 changed files with 7 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue