I'm proposing a standard way to define important directories by means of variables, so, instead of having echo > /dev/null 2>&1 ; we would have echo > $DEVDIR/null 2>&1 ; This way we don't get errors of file not found. And it will work in any machine, I mean, machines with non standard file hierarchy.
Sent from my iPhone Sent from my iPhone > On 1 Nov 2016, at 10:00 AM, [email protected] > wrote: > > Send lsb-discuss mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.linuxfoundation.org/mailman/listinfo/lsb-discuss > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of lsb-discuss digest..." > > > Today's Topics: > > 1. Re: Hard coded directories in makefiles (Mats Wichmann) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 31 Oct 2016 08:32:25 -0600 > From: Mats Wichmann <[email protected]> > To: [email protected] > Subject: Re: [lsb-discuss] Hard coded directories in makefiles > Message-ID: <[email protected]> > Content-Type: text/plain; charset=windows-1252 > >> On 10/29/2016 09:38 AM, Brian Mayer wrote: >> Hello all, >> >> While trying to build LFS in a non standard hierarchy I faced the problem >> of having to tweak variables so programs can compile OK, however those >> makefiles have directories explicitly written in the code. Therefore I have >> to edit those makefiles and put the correct path so the makefile can find >> /dev/null and /bin/sh for example. >> >> Hence my question is: Won't it be good if we could parse those variables to >> makefiles or configure script, e.g. DEVDIR=/path/to/dev/ make, so they >> could compile correctly? >> >> This way we would be able to build custom systems easily, without the use >> of symlinks or having to edit makefiles, and if we wish to comply with FHS >> it will be easy the same way. >> >> Thanks. >> >> Sent from my iPad >> _______________________________________________ >> lsb-discuss mailing list >> [email protected] >> https://lists.linuxfoundation.org/mailman/listinfo/lsb-discuss > > Not sure what you are asking or proposing here. > > Well constructed projects typically have ways to relocate paths with > makefile variables like BINDIR, DESTDIR, etc. Projects that don't do > that are not as flexible. For cross compiling the situation is > typically even more complex. > > > ------------------------------ > > _______________________________________________ > lsb-discuss mailing list > [email protected] > https://lists.linuxfoundation.org/mailman/listinfo/lsb-discuss > > > End of lsb-discuss Digest, Vol 120, Issue 1 > *******************************************
_______________________________________________ lsb-discuss mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/lsb-discuss
