I noticed while testing the preceeding patch for resultmap, that we
use /bin/ld -G to build the .so's.  THIS DOESN'T WORK on UnixWare and
OpenUNIX 8. 

Where can I change this to use cc -G? 

Larry

-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

Fri, 24 Aug 2001 10:33:55 -0500
Larry Rosenman <ler@lerctr.org>
/bin/ld -G vs /usr/ccs/bin/cc -G
Larry Rosenman writes:

> I noticed while testing the preceeding patch for resultmap, that we
> use /bin/ld -G to build the .so's.  THIS DOESN'T WORK on UnixWare and
> OpenUNIX 8.
>
> Where can I change this to use cc -G?

src/makefiles/Makefile.unixware

Make sure that gcc works as well.  I recall that we had some problems with
gcc -G in the past, though I don't recall the details.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


Sat, 25 Aug 2001 02:37:48 +0200 (CEST)
Peter Eisentraut <peter_e@gmx.net>
Re: /bin/ld -G vs /usr/ccs/bin/cc -G
* Peter Eisentraut <peter_e@gmx.net> [010824 19:33]:
> Larry Rosenman writes:
> 
> > I noticed while testing the preceeding patch for resultmap, that we
> > use /bin/ld -G to build the .so's.  THIS DOESN'T WORK on UnixWare and
> > OpenUNIX 8.
> >
> > Where can I change this to use cc -G?
> 
> src/makefiles/Makefile.unixware
> 
> Make sure that gcc works as well.  I recall that we had some problems with
> gcc -G in the past, though I don't recall the details.
Can you check this patch?   I believe it will fix the GCC issue as
well as the native CC...


Index: Makefile.unixware
===================================================================
RCS file: /home/projects/pgsql/cvsroot/pgsql/src/makefiles/Makefile.unixware,v
retrieving revision 1.9
diff -c -r1.9 Makefile.unixware
*** Makefile.unixware	2000/12/16 18:14:25	1.9
--- Makefile.unixware	2001/08/25 18:22:36
***************
*** 16,21 ****
  else
  CXXFLAGS_SL = -K PIC
  endif
  
  %.so: %.o
! 	$(LD) -G -Bdynamic -o $@ $<
--- 16,26 ----
  else
  CXXFLAGS_SL = -K PIC
  endif
+ ifeq ($(GCC), yes)
+ SO_FLAGS = -shared
+ else
+ SO_FLAGS = -G
+ endif
  
  %.so: %.o
! 	$(CC) $(SO_FLAGS) -Bdynamic -o $@ $<
> 
> -- 
> Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter

-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

Sat, 25 Aug 2001 13:23:38 -0500
Larry Rosenman <ler@lerctr.org>
Re: /bin/ld -G vs /usr/ccs/bin/cc -G