Hi Glenn, Sorry for the confusion. I am not building multi architecture targets from one nmake invocation rather I am building multiple binaries. Some of binaries need RPATH to resolve shared libraries dynamically without using LD_LIBRARY_PATH. Also depending on the build environments I need to set different RPATH.
Basically developers think that invoking nmake multiple times for building each target by passing different LDFLAGS is cumbersome and error pron. I also do not want developers to pass CCFLAGS and LDFLAGS for the production release build. Here is sample nmakefile: :ALL: target1 target2 target1 :: target1.C /* Pleas pass the following LDFLAGS as command line argument to build target2 PROD: LDFLAGS=-Wl,-R/usr/local/xxx/lib DEV: LDFLAGS=-Wl,-R/u1/build/dev/lib WS: LDFLAGS=-Wl,-R$HOME/dev/lib */ target2 :: target2.C Thanks Sang On Fri, Aug 14, 2009 at 1:52 PM, Glenn Fowler <[email protected]> wrote: > > the typical way to build for multiple architectures: > > * one makefile per library or collection of utilities > within a hierarchy of makefiles > > * a viewpath for each binary architecture target > > * one build from the top level for each architecture > > this is how ast-open is organized > the viewpath allows one copy of the source and > multiple binaries in separate views > a binary view can be deleted and rebuilt from the source > > if you try to build multiple architecture targets > from one makefile with one nmake invocation you will > run into conflicts with the probe information and nmake state > > explain a little more about your setup and I'll respond monday > > have a good weekend > > > On Fri, 14 Aug 2009 13:40:36 -0400 Sang Lee wrote: > > Hi All, > > I have a Nmakefile for building many binaries for Solaris 8 and Linux > > platforms. > > The problem that I have is how to build those targets without running > nmake > > multiple times with different with different LDFLAGS? > > I do not want developers passing LDFLAGS as command line arguments for > our > > production application builds. > > But I need to some build applications with RPATH to eliminate > > LD_LIBRARY_PATH. > > > Thanks > > Sang > > > --001636c5a951c5e66c04711d8cec > > Content-Type: text/html; charset=ISO-8859-1 > > Content-Transfer-Encoding: quoted-printable > > > Hi All,<div><br></div><div>I have a Nmakefile for=A0building > many=A0binarie= > > s for Solaris 8 and Linux platforms.</div><div>The problem that I have is > h= > > ow to build those targets <span class=3D"Apple-style-span" > style=3D"border-= > > collapse: collapse; white-space: pre; -webkit-border-horizontal-spacing: > 2p= > > x; -webkit-border-vertical-spacing: 2px; ">without running nmake multiple > t= > > imes with different=A0<span class=3D"Apple-style-span" > style=3D"border-coll= > > apse: separate; white-space: normal; -webkit-border-horizontal-spacing: > 0px= > > ; -webkit-border-vertical-spacing: 0px; ">with different<span > class=3D"Appl= > > e-style-span" style=3D"border-collapse: collapse; white-space: pre; > -webkit= > > -border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "> > L= > > DFLAGS?</span></span></span></div> > > <div><span class=3D"Apple-style-span" style=3D"border-collapse: collapse; > w= > > hite-space: pre; -webkit-border-horizontal-spacing: 2px; > -webkit-border-ver= > > tical-spacing: 2px;">I do not want developers passing LDFLAGS as command > li= > > ne arguments for our production application builds.</span></div> > > <div><span class=3D"Apple-style-span" style=3D"border-collapse: collapse; > w= > > hite-space: pre; -webkit-border-horizontal-spacing: 2px; > -webkit-border-ver= > > tical-spacing: 2px;">But I need to some build applications with RPATH to > el= > > iminate LD_LIBRARY_PATH.</span></div> > > <div><span class=3D"Apple-style-span" style=3D"border-collapse: collapse; > w= > > hite-space: pre; -webkit-border-horizontal-spacing: 2px; > -webkit-border-ver= > > tical-spacing: 2px;"><br></span></div><div><span > class=3D"Apple-style-span"= > > style=3D"border-collapse: collapse; white-space: pre; > -webkit-border-horiz= > > ontal-spacing: 2px; -webkit-border-vertical-spacing: > 2px;">Thanks</span></d= > > iv> > > <div><span class=3D"Apple-style-span" style=3D"border-collapse: collapse; > w= > > hite-space: pre; -webkit-border-horizontal-spacing: 2px; > -webkit-border-ver= > > tical-spacing: 2px;">Sang</span></div> > > > --001636c5a951c5e66c04711d8cec-- > > > --===============0001873331== > > Content-Type: text/plain; charset="us-ascii" > > MIME-Version: 1.0 > > Content-Transfer-Encoding: 7bit > > Content-Disposition: inline > > > _______________________________________________ > > ast-users mailing list > > [email protected] > > https://mailman.research.att.com/mailman/listinfo/ast-users > > > --===============0001873331==-- > >
_______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
