Commit 813b1fd2 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Minor changes for FreeBSD 5.4 build with perl 5.8.X. No idea yet if

this is gonna work cause the existing swig generated wrappers
(from swig 1.1) generate a bunch of warnings about ptr size mismatch.
But at least it compiles and I can proceed a little further.
parent 8bd26094
......@@ -25,6 +25,9 @@ all: $(PROGRAMS)
include $(TESTBED_SRCDIR)/GNUmakerules
# We need to know what version of perl for headers below; use silly script.
PERLVERS := $(shell $(SRCDIR)/
CFLAGS += -O2 -g -static -I. -Wall
SCFLAGS = $(CFLAGS) `$(ELVIN_CONFIG) --cflags vin4c`
......@@ -40,11 +43,11 @@ PYCORE = -I@PYTHON_INCLUDE@
FBSDVERSION := $(shell uname -v | sed -e 's/FreeBSD \([0-9]\).*/FreeBSD\1/')
ifeq ($(FBSDVERSION),FreeBSD5)
PCORE = -I/usr/local/lib/perl5/5.6.1/mach/CORE
PCORE = -I/usr/local/lib/perl5/$(PERLVERS)/mach/CORE
PCORE = -I/usr/libdata/perl/5.00503/mach/CORE
# PERL_POLLUTE gets us sv_undef on newer versions of perl
#!/usr/bin/perl -w
use English;
# A silly little script to figure out what version of perl is running
# so we can find headers for the swig generated goo.
foreach my $p (@INC) {
if ($p =~ /perl5\/(\d+\.\d+\.\d+)\//) {
print "$1";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment