Re: [Opalvoip-devel] Some fix and tuning of PTLIB unix.mak
Brought to you by:
csoutheren,
rjongbloed
From: Robert J. <ro...@vo...> - 2009-10-27 21:42:41
|
Quickly thrown in the extra targets, but have no tried them! Robert Jongbloed OPAL/OpenH323/PTLib Architect and Co-founder. > -----Original Message----- > From: Jan Willamowius [mailto:ja...@wi...] > Sent: Wednesday, 28 October 2009 2:20 AM > To: opa...@li... > Subject: Re: [Opalvoip-devel] Some fix and tuning of PTLIB unix.mak > > Now that "make optnoshared" puts its object files into a separate > directory (which is great), those object files don't get deleted any > more on a "make clean". > > There probably needs to be an new target "optnosharedclean" or > similar > that gets added to "clean". > > Regards, > Jan > > > Robert Jongbloed wrote: > > Patch applied, thank you very much! > > > > Robert Jongbloed > > OPAL/OpenH323/PTLib Architect and Co-founder. > > > > > > > -----Original Message----- > > > From: Yuriy Cherniavsky [mailto:yur...@gm...] > > > Sent: Tuesday, 20 October 2009 1:30 AM > > > To: opa...@li... > > > Subject: [Opalvoip-devel] Some fix and tuning of PTLIB unix.mak > > > > > > Hi OPAL community. > > > > > > Today I wish to build threadex ptlib sample. > > > Make target opt and debug work ok, but target optstatic and > > > debugstatis does > > > not work. > > > > > > During for example optstatic build it try to link with "libpt.a" > when > > > PTLIB > > > make "ptlib_s.a", > > > so suffix "_s" does not add. > > > As I understand this suffix must be specified in unix.mak throw > > > LIB_TYPE > > > variable which does > > > not assign with "_s" if P_SHAREDLIB = 0. > > > > > > Then if I wish build 4 different version (opt debug optstatic > > > debugstatis) > > > of threadex ptlib > > > sample I can't, because output directory does not include "_s" > suffix > > > too. > > > As I understand suffix must be specified in unix.mak too throw > > > OBJDIR_SUFFIX > > > variable. > > > > > > Patch to solve this 2 problems (review it please and if all is ok > > > than > > > commit): > > > Index: make/unix.mak > > > > =================================================================== > > > --- make/unix.mak (revision 23683) > > > +++ make/unix.mak (working copy) > > > @@ -568,10 +568,6 @@ > > > endif # DEBUG > > > endif # OBJ_SUFFIX > > > > > > -ifndef OBJDIR_SUFFIX > > > -OBJDIR_SUFFIX = $(OBJ_SUFFIX) > > > -endif > > > - > > > ifndef STATICLIBEXT > > > STATICLIBEXT = a > > > endif > > > @@ -581,9 +577,13 @@ > > > LIB_TYPE = > > > else > > > LIB_SUFFIX = a > > > -LIB_TYPE = > > > +LIB_TYPE = _s > > > endif # P_SHAREDLIB > > > > > > +ifndef OBJDIR_SUFFIX > > > +OBJDIR_SUFFIX = $(OBJ_SUFFIX)$(LIB_TYPE) > > > +endif > > > + > > > ifndef INSTALL_DIR > > > INSTALL_DIR = ${PREFIX} > > > endif > > > > > > > > > Truly yours, Yuriy. > > -- > Jan Willamowius, ja...@wi..., http://www.gnugk.org/ > > --------------------------------------------------------------------- > --------- > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Opalvoip-devel mailing list > Opa...@li... > https://lists.sourceforge.net/lists/listinfo/opalvoip-devel |