Subject: Need help with perl5/module.mk and OTHERLDFLAGS (was Re: devel/p5-subversion is broken)
To: None <tech-pkg@NetBSD.org>
From: Eric Gillespie <epg@pretzelnet.org>
List: tech-pkg
Date: 01/11/2004 17:33:57
While working on merging Perl bindings changes for Subversion
1.0, i think i found the problem with our devel/p5-subversion
package. Unfortunately, i do not know the best way to solve it.
I'd appreciate any help.
Subversion's Makefile.PL contains this:
OTHERLDFLAGS => join(' ', $apr_ldflags, (map {"-L$_"} @ldpaths),
@ldmodules, '-lsvn_swig_perl-1',
`swig -perl -ldflags`),
which results in this in the Makefile:
OTHERLDFLAGS = -L../.libs -L../../../libsvn_client/.libs -L../../../libsvn_delta/.libs -L../../../libsvn_fs/.libs -L../../../libsvn_ra/.libs -L../../../libsvn_repos/.libs -L../../../libsvn_wc/.libs -L../../../libsvn_diff/.libs -L../../../libsvn_subr/.libs -lsvn_client-1 -lsvn_delta-1 -lsvn_fs-1 -lsvn_ra-1 -lsvn_repos-1 -lsvn_wc-1 -lsvn_diff-1 -lsvn_subr-1 -lsvn_swig_perl-1 -L/usr/pkg/lib -lswigpl
But perl5/module.mk clobbers OTHERLDFLAGS :(.
I can think of plenty of hacks, but no clean way to solve this.
I'm hoping someone who knows more about perl and/or pkgsrc can
help.
Thanks.
--
Eric Gillespie <*> epg@pretzelnet.org