hi!

a possible way to solve such kind of conflics is to define different
output directories.

in your case this could be achieved by e.g.

SLO+:!=$(SLO)$/$(wherever_you_got_intel_and_powerpc)
RSLO+:!=$(RSLO)$/$(wherever_you_got_intel_and_powerpc)

in the local makefile and using plain SLO for the universal output.

the downside is that when changing something as basic as SLO, i'm quite
sure a couple of pitfalls are waiting for you...

tschau...

ause

Pavel Janík wrote:
> Hi,
> 
> I'm working on universal binaries for Mac OS X and have an interesting
> problem to solve ;-)
> 
> Bridges contain directories like
> 
> bridges/source/cpp_uno/gcc3_macosx_intel
> bridges/source/cpp_uno/gcc3_macosx_powerpc
> 
> etc.
> 
> I extended it to contain
> 
> bridges/source/cpp_uno/gcc3_macosx_universal
> 
> as well. This directory is built *after* first two dirs mentioned above
> and creates universal binary by combining the output from these
> directories.
> 
> It works, sort of ;-)
> 
> The problem is that intel dir contains:
> 
> SLOFILES= \
>     $(SLO)$/except.obj        \
>     $(SLO)$/cpp2uno.obj        \
>     $(SLO)$/uno2cpp.obj \
>     $(SLO)$/call.obj
> 
> and powerpc:
> 
> SLOFILES= \
>     $(SLO)$/except.obj        \
>     $(SLO)$/cpp2uno.obj        \
>     $(SLO)$/uno2cpp.obj
> 
> So these three files are "shared".
> 
> This brings some interesting issues like parallel build issues, ordering
> issues (if the Intel is built first, PPC files are not built) etc. Is
> there any way to solve this issue *without* renaming the files? My goal
> is to not change the name of these files, I do not care about parallel
> build issues right now. Good enouhg (for now) fix for me would be one of:
> 
> - remove $SLOFILES after the TARGET is created
> - touch source files *before* the TARGET is created
> 
> Or?
> 
> I simply feel that renaming is the proper solution here, but is there
> any other solution available?
> --Pavel Janík
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to