hi,

I'm trying to use autoconf/make to compile/link a package of C++ routines.
these routines are so-called DLD (dynamically loadable functions) for
GNU Octave.
they are compiled and linked with "mkoctfile" (which internally use g++).

the idea is to replace the usual C++ compiler and linker by mkoctfile.
I can do this easily for the compiler by stating new compiling rules in
the Makefile.am. But I couldn't find any nice solution for the linking step.
The solution I am using now is to set the linker individually for each DLD:

-----------------------------------------------------------------------------------------------------------------------
Makefile.am
================================================

.cc.o:
       $(MKOCTFILE) -c -o $@ $<

bin_PROGRAMS=foo

foo_SOURCES=foo.cc

foo_LINK=$(MKOCTFILE) -o $@

================================================

[see also the complete package attached here]

any better solution?

eric.

Attachment: foo.tgz
Description: GNU Zip compressed data

Reply via email to