Thanks Mike,
How is the easy way to give you the
changes I found so far? There are around 10 changes in 30 files (all
configure.gnu files need a fix).
Robert
From: Michael Jerris
[mailto:mike@jerris.com]
Sent: Monday, November 23, 2009
1:42 PM
To:
freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users]
Building in a builddir using--srcdiroptionbut modules still build in srcdir
I'll work on this, can you open me up a bug on http://jira.freeswitch.org in regards to
this please.
Mike
On Nov 23, 2009, at 4:19 PM,
In typical automake builds the configure step
takes the Makefile.am from the srcdir and generates the Makefile in the
builddir.
Most src/mod subdirs are not using
automake and/or configure. They just have a simple Makefile in with the
source.
Robert
From: Michael Jerris
[mailto:mike@jerris.com]
Sent: Monday, November 23, 2009
1:09 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users]
Building in a builddir using --srcdiroptionbut modules still build in srcdir
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,
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@jerris.com]
Sent: Monday, November 23, 2009
11:16 AM
To: freeswitch-users@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,
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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org