Irix linking fix from Yu Cao <[email protected]>
authorTom Lane <[email protected]>
Tue, 7 Sep 1999 18:11:35 +0000 (18:11 +0000)
committerTom Lane <[email protected]>
Tue, 7 Sep 1999 18:11:35 +0000 (18:11 +0000)
src/interfaces/libpq++/Makefile.in

index 58937c556ece07d7fe18871dcd371022b1c0b952..e9cbe2ebf470085a33ebb12bec5ad02efae41c4e 100644 (file)
@@ -6,7 +6,7 @@
 # Copyright (c) 1994, Regents of the University of California
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile.in,v 1.16 1999/07/08 03:30:16 momjian Exp $
+#    $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile.in,v 1.16.2.1 1999/09/07 18:11:35 tgl Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -48,6 +48,15 @@ else
 SHLIB_LINK= -L../libpq -lpq
 endif
 
+# For CC on IRIX, must use CC as linker/archiver of C++ libraries
+ifeq ($(PORTNAME), irix5)
+  ifeq ($(CXX), CC)
+    AR = CC
+    AROPT = -ar -o
+    LD = CC
+  endif
+endif
+
 # Shared library stuff, also default 'all' target
 include $(SRCDIR)/Makefile.shlib