gEDA-dev: add-on dir name for pcb

Mike Jarabek mjarabek at istop.com
Mon Oct 2 07:19:46 EDT 2006


Hi,

On Sun, 2006-10-01 at 22:10 -0400, DJ Delorie wrote:
> Ok, I checked this in.  The search logic is:
> 
>   hid_load_dir (Concat (EXECPREFIXDIR, "/lib/pcb/plugins/", HOST, NULL));
>   hid_load_dir (Concat (EXECPREFIXDIR, "/lib/pcb/plugins", NULL));
>   home = getenv("HOME");
>   if (home)
>     {
>       hid_load_dir (Concat (home, "/.pcb/plugins/", HOST, NULL));
>       hid_load_dir (Concat (home, "/.pcb/plugins", NULL));
>     }
>   hid_load_dir (Concat ("plugins/", HOST, NULL));
>   hid_load_dir (Concat ("plugins", NULL));
> 
> Where EXECPREFIXDIR is --exec-prefix (defaults to --prefix), and HOST
> is the --host (i686-pc-linux-gnu for me).

Perhaps you could make that '--target' instead of '--host', in the event
that someone is cross-compiling PCB on a different host. ;-)  For the
most part, in a normal build target should be the same as host, but not
always...

-- 
--------------------------------------------------
                              Mike Jarabek        
                                FPGA/ASIC Designer
  http://www.istop.com/~mjarabek                    
--------------------------------------------------




More information about the geda-dev mailing list