Thread: Re: [PORTS] PostgreSQL 6.5.2 ported to QNX 4

Re: [PORTS] PostgreSQL 6.5.2 ported to QNX 4

From
"Kardos, Dr. Andreas"
Date:
Bruce Momjian wrote:

>These are problematic.  Changing $(LD) -r to $(AR) will not work on many
>platforms.  In the current source tree.  I have changed all $(LD) -r to
>$(LD) $(LDREL), and defined LDREL= -r.  The -r can now be overridden in
>Makefile.qnx.  You can now define $LD as 'ar' in qnx.


Unfortunately I still cannot use the backend/Makefiles because in

    $(LD) $(LDREL) -o SUBSYS.o $(OBJS)

the -o option still disturbes. What I need after replacements is

    ar cr SUBSYS.o $(OBJS)

>I have not added any of the #if QNX code.  My recommendation is that you
>grab a copy of the current tree via cvs, which will have the changes I
>just made, and see if you can get that to work.  You will find that most
>of your stuff will work fine, and that only a few areas now have to be
>modified.


CVS tree got.

Andreas Kardos



Re: [PORTS] PostgreSQL 6.5.2 ported to QNX 4

From
Bruce Momjian
Date:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Bruce Momjian wrote:
>
> >These are problematic.  Changing $(LD) -r to $(AR) will not work on many
> >platforms.  In the current source tree.  I have changed all $(LD) -r to
> >$(LD) $(LDREL), and defined LDREL= -r.  The -r can now be overridden in
> >Makefile.qnx.  You can now define $LD as 'ar' in qnx.
>
>
> Unfortunately I still cannot use the backend/Makefiles because in
>
>     $(LD) $(LDREL) -o SUBSYS.o $(OBJS)
>
> the -o option still disturbes. What I need after replacements is
>
>     ar cr SUBSYS.o $(OBJS)

OK, I have applied a new LDOUT variable that normally equals -o but can
be replaced in your custom Makefile.  Please get the newest version to
see the change.

--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026