X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=inline;f=Makefile.config;h=67c0dcb51204d2c2c6594062d046c8cd9e16cfa7;hb=186f65548798769d55c2581b55b41ce1bbd6fe90;hp=00c2abd4c84c381d73ebbee4b61aab3c663e7363;hpb=1f6e0a98c69a2cc0839f8317dfa6ca101da5d043;p=perl4caml.git diff --git a/Makefile.config b/Makefile.config index 00c2abd..67c0dcb 100644 --- a/Makefile.config +++ b/Makefile.config @@ -1,5 +1,5 @@ # perl4caml configuration -*- Makefile -*- -# $Id: Makefile.config,v 1.6 2003-10-15 08:55:23 rich Exp $ +# $Id: Makefile.config,v 1.21 2005-01-28 23:09:31 rich Exp $ # PERLINCDIR # Directory containing the Perl include files, eg. . @@ -12,7 +12,34 @@ PERLINCDIR := $(shell perl -MConfig -e 'print "$$Config{archlib}/CORE"') OCAMLLIBDIR := $(shell ocamlc -where) +# EXTRA_CFLAGS +# You can specify extra flags to be passed to gcc here. +# +# One flag you might want to pass here is +# +# -DPERL4CAML_REFCOUNTING_EXPERIMENTAL=1 +# +# which will turn on experimental support for reference counting. +# Without this none of the Perl structures that you allocate will get +# freed. With this we try to map Perl's reference counting onto +# OCaml's garbage collection by using finalizers. Although the +# feature is marked "EXPERIMENTAL", I have fixed most of the bugs +# and it's now turned on by default. + +#EXTRA_CFLAGS := +EXTRA_CFLAGS := -DPERL4CAML_REFCOUNTING_EXPERIMENTAL=1 +#EXTRA_CFLAGS := -I/Users/rich/OCaml/lib/ocaml/std-lib +#EXTRA_CFLAGS := -g + +# DYNALOADER_HACK +# XXX Hack required by ocamlopt, and sometimes ocamlc. +# To work out what this should be, try: +# `perl -MExtUtils::Embed -e ldopts' + +DYNALOADER_HACK := /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a +#DYNALOADER_HACK := /System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a + # PACKAGE and VERSION PACKAGE := perl4caml -VERSION := 0.3.1 +VERSION := 0.3.15