[Freeswitch-users] Building in a builddir using --srcdir optionbut modules still build in srcdir
Michael Jerris
mike at jerris.com
Mon Nov 23 13:09:05 PST 2009
In these builds how is it supposed to work, do generated files like Makefiles get put it builddir or srcdir?
Mike
On Nov 23, 2009, at 2:54 PM, Robert Hadley wrote:
> Thanks Mike.
>
> modmake.rules is created in the $(switch_builddir)/build.
>
> What I see as the problem is in src/mod/Makefile.am
>
> There is a statement line 12 that points moddir to the source
> if test –d “$(switch_srcdir)/src/mod/$$confmoddir” ; then \
> moddir = “$(switch_srcdir)/src/mod/$$confmoddir” ;
>
> And then the statements starting around line 22 that cd to moddir (in src) and fire off make
> if test –f “$$moddir/Makefile” ; then \ ß Yep, this will be true
> cd $$moddir && … && $(MAKE)
>
> I’m not sure what to change to get it to build in $(switch_builddir), and getting the source automatically from $(switch_srcdir). My old-fashion brute-force idea is to symlink the source src/mod/subdirs in the build src/mod/subdirs right before line 12, changing line 12 to use $(switch_builddir).
>
> Does anybody have a better idea?
>
> Thanks,
> Robert
>
>
>
> From: Michael Jerris [mailto:mike at jerris.com]
> Sent: Monday, November 23, 2009 11:16 AM
> To: freeswitch-users at lists.freeswitch.org
> Subject: Re: [Freeswitch-users] Building in a builddir using --srcdir optionbut modules still build in srcdir
>
> The Makefile rules that those are built with can all be found in build/modmake.rules.in. I looked them over real quick and they look right, maybe try throwing some debug echo statements in there or build with env var of VERBOSE=1 to see more of what is going on and toss a patch to correct the issue on jira for me.
>
> Mike
>
> On Nov 23, 2009, at 12:53 PM, Robert Hadley wrote:
>
>
> I am trying to build in a subdirectory off the Freeswitch source. I can configure successfully and have make working for switch files and the libraries, but I am having trouble with the modules in src/mod. They still compile in the src/mod folders. Any ideas?
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091123/73d28cb1/attachment-0002.html
More information about the FreeSWITCH-users
mailing list