Ticket #29 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

prefix/arch enhancement suggestion

Reported by: afb Assigned to: Gregor
Priority: minor Milestone:
Component: Rebuild Version:
Keywords: Cc:

Description

One thing that would be useful was if you could set the $PATH to gdmd, and some optional arguments to pass to it globally at the config top ? (say for instance for gdc-posix-tango)

I wasn't really sure if you could do it already with rebuild 0.18, so I just search/replaced:

[compile]
cmd=/opt/gdc/bin/gdmd -arch ppc -arch i386 -version=Posix -version=Tango -c $i
...

[link]
cmd=/opt/gdc/bin/gdmd -arch ppc -arch i386 $i -of$o
...

[shliblink]
shlibs=yes
cmd=/opt/gdc/bin/gdmd -arch ppc -arch i386 -q,-shared -q,-nodefaultlibs $i -of$o
...

[dyliblink]
dylibs=yes
cmd=/opt/gdc/bin/gdmd -arch ppc -arch i386 -q,-shared -q,-nodefaultlibs $i $l/dymoduleinit.d -of$o
...

Here I used an alternative prefix to gdc of "/opt/gdc", and added flags for building Mac OS X Universal Binaries.

Change History

04/16/07 16:21:21 changed by Gregor

  • status changed from new to assigned.

How about if I added a path= directive which would simply add the desired path to your $PATH?

04/18/07 16:24:49 changed by Gregor

  • status changed from assigned to closed.
  • resolution set to fixed.

Added in revision 509. Closing.