[haiku-development] Re: Path-relocatable software and assigns?

  • From: Brecht Machiels <brecht@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 14 Apr 2009 22:47:31 +0000

Axel Dörfler wrote:
Adrien wrote:
[assigns]
Actually they are used for many things in amigaOS. The "assign add"
is particularly powerful, it is used for the path, but also for include
search, so you put all the dirs where you have .h files in a single
INCLUDES: assign. This avoids very long messy gcc command lines :)

Assigns are problematic for this use case as they introduce system wide paths. Besides, the standard includes are scanned automatically anyway, so you don't have to wrestle with GCC at all.

Assigns should in fact be optionally user local. The PROGDIR: assign in AmigaOS is actually local to one application. Otherwise AmigaOS would not be able to multi-task :)

In this regard, and also multi-user, I don't think assigns are the answer to the problems they solved quite elegantly on AmigaOS.

Multi-user was one of the motivations for implementing assigns. Come on Axel, read! :)

Cheers,
Brecht

Other related posts: