diff options
author | markm <markm@FreeBSD.org> | 1999-09-04 10:02:04 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 1999-09-04 10:02:04 +0000 |
commit | f863534104d0464925c158745c9412196654311a (patch) | |
tree | c022bff394d36f8d58b4c4d8fa911a9a51de5ef7 /gnu/usr.bin/perl/miniperl/Makefile | |
parent | 3f27ca11404bfee6ad95039f41fe9625062bf654 (diff) | |
download | FreeBSD-src-f863534104d0464925c158745c9412196654311a.zip FreeBSD-src-f863534104d0464925c158745c9412196654311a.tar.gz |
Allow perl to be built with thread support.
Submitted by: Doug Ambrisko <ambrisko@whistle.com>
Diffstat (limited to 'gnu/usr.bin/perl/miniperl/Makefile')
-rw-r--r-- | gnu/usr.bin/perl/miniperl/Makefile | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/gnu/usr.bin/perl/miniperl/Makefile b/gnu/usr.bin/perl/miniperl/Makefile index e072d5e..33985ec 100644 --- a/gnu/usr.bin/perl/miniperl/Makefile +++ b/gnu/usr.bin/perl/miniperl/Makefile @@ -19,15 +19,29 @@ CLEANFILES= config.h config.sh config_h.sh .include <bsd.prog.mk> +PERL_THREADED?= no +.if ${PERL_THREADED} == "true" +CFLAGS+= -pthread +LDADD+= -pthread +.endif + +PERL_DEBUGGING?= no +.if ${PERL_DEBUGGING} == "true" +CFLAGS+= -DDEBUGGING +.endif + miniperlmain.o: config.h config.h: config_h.sh config.sh sh config_h.sh -config.sh: ${.CURDIR}/../libperl/config.SH-${OBJFORMAT}.${MACHINE_ARCH} - @ln -sf ${.OODATE} ${.TARGET} +${.CURDIR}/../libperl/config.sh: + cd ${.CURDIR}/../libperl ; make config.sh + +config.sh: ${.CURDIR}/../libperl/config.sh + ln -sf ${CANONICALOBJDIR}/../libperl/config.sh ${.TARGET} config_h.sh: config_h.SH - @ln -sf ${.OODATE} ${.TARGET} + ln -sf ${.OODATE} ${.TARGET} .PATH: ${PERL5SRC} |