X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=Makefile.config;h=7e4e3d7f231dc9d27d6aef1f64b205fd6dcbcc44;hb=36b9a44ab49471646b7a3548d1e2d28c015063ad;hp=c309a08248f2da6013445f538a6f20062590d0b8;hpb=43ea9d6fb51c33d789760326f2233998dd1754ee;p=perl4caml.git diff --git a/Makefile.config b/Makefile.config index c309a08..7e4e3d7 100644 --- a/Makefile.config +++ b/Makefile.config @@ -1,5 +1,22 @@ # perl4caml configuration -*- Makefile -*- -# $Id: Makefile.config,v 1.17 2004-11-22 17:40:55 rich Exp $ +# Copyright (C) 2003 Merjis Ltd. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this library; see the file COPYING. If not, write to +# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. +# +# $Id: Makefile.config,v 1.27 2008-03-01 13:02:21 rich Exp $ # PERLINCDIR # Directory containing the Perl include files, eg. . @@ -22,14 +39,25 @@ OCAMLLIBDIR := $(shell ocamlc -where) # 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. There are some -# problems with this code at the moment, hence it is disabled by -# default. +# 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' -EXTRA_CFLAGS := -#EXTRA_CFLAGS := -DPERL4CAML_REFCOUNTING_EXPERIMENTAL=1 +DYNALOADER_HACK := $(shell perl -MExtUtils::Embed -e ldopts | egrep -o '/[^[:space:]]*DynaLoader.a') +#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.12 +VERSION := 0.9.5