Hello Johannes, I am currently trying to include the m4ri library into ibrdtnd for my new router and I was wondering what the best way to go about that is. I realize I could make an option as the best solution to this problem, but I just need a quick fix that allows me to configure and make the files without destroying any changes I make to the Makefile. Do you know where I can include the option -lm4ri so that I can get access to this library?
Thanks, Carson
Hi Carson.
The best way would be to modify the configure.ac of the daemon (ibrdtnd). I assume you are adding this library for routing and thus this is needed only by the daemon process, right?
Google for autoconf / autotools or look at the original configure.ac. There are a lot of library checks and inclusions done there. It should be easy to add your own check. Next you need to modify the Makefile.am that contains your own source files and add there the previously determined library options.
As a quick and dirty hack to check if your code is working, you could modify the Makefile.am only or just build your code like that:
$ make LDFLAGS="-lm4ri"
Kind regards, Johannes
Am 23.08.2012 18:37, schrieb Carson Dunbar:
Hello Johannes, I am currently trying to include the m4ri library into ibrdtnd for my new router and I was wondering what the best way to go about that is. I realize I could make an option as the best solution to this problem, but I just need a quick fix that allows me to configure and make the files without destroying any changes I make to the Makefile. Do you know where I can include the option -lm4ri so that I can get access to this library?
Thanks, Carson
participants (2)
-
Carson Dunbar
-
Johannes Morgenroth