mirror of
https://github.com/postgres/postgres.git
synced 2025-05-29 00:03:09 -04:00
Here are some additional patches needed to get the UnixWare 7 C++
compiler to attempt to compile libpq++. The patches address the following problems: 1. In my first pass at changing the libpq++ makefile, I forgot to include the PORTNAME in the Makefile.in file. 2. The UnixWare 7 C++ compiler did not like the '-K alloca' option in CXXFLAGS. Billy G. Allie
This commit is contained in:
parent
bcb51fc916
commit
af8e2760ba
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile.in,v 1.1 1998/09/11 16:56:23 momjian Exp $
|
# $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile.in,v 1.2 1998/09/13 04:00:41 momjian Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -20,6 +20,8 @@ LIBNAME= libpq++
|
|||||||
|
|
||||||
CXX=@CXX@
|
CXX=@CXX@
|
||||||
|
|
||||||
|
PORTNAME=@PORTNAME@
|
||||||
|
|
||||||
# We have to override -Werror, which makes warnings, fatal, because we
|
# We have to override -Werror, which makes warnings, fatal, because we
|
||||||
# inevitably get the warning, "abstract declarator used as declaration"
|
# inevitably get the warning, "abstract declarator used as declaration"
|
||||||
# because of our inclusion of c.h and we don't know how to stop that.
|
# because of our inclusion of c.h and we don't know how to stop that.
|
||||||
@ -67,6 +69,10 @@ ifeq ($(PORTNAME), unixware)
|
|||||||
shlib := libpq.so.1
|
shlib := libpq.so.1
|
||||||
LDFLAGS_SL = -G -z text
|
LDFLAGS_SL = -G -z text
|
||||||
CFLAGS += $(CFLAGS_SL)
|
CFLAGS += $(CFLAGS_SL)
|
||||||
|
ifeq ($(CXX), CC)
|
||||||
|
CXXFLAGS += -Xw
|
||||||
|
COMPILE.cc = $(CXX) $(CXXFLAGS:ll,alloca=ll) $(CPPFLAGS) $(TARGET_ARCH) -c
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(PORTNAME), univel)
|
ifeq ($(PORTNAME), univel)
|
||||||
@ -74,6 +80,10 @@ ifeq ($(PORTNAME), univel)
|
|||||||
shlib := libpq.so.1
|
shlib := libpq.so.1
|
||||||
LDFLAGS_SL = -G -z text
|
LDFLAGS_SL = -G -z text
|
||||||
CFLAGS += $(CFLAGS_SL)
|
CFLAGS += $(CFLAGS_SL)
|
||||||
|
ifeq ($(CXX), CC)
|
||||||
|
CXXFLAGS += -Xw
|
||||||
|
COMPILE.cc = $(CXX) $(CXXFLAGS:ll,alloca=ll) $(CPPFLAGS) $(TARGET_ARCH) -c
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(PORTNAME), hpux)
|
ifeq ($(PORTNAME), hpux)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
AROPT:crs
|
AROPT:crs
|
||||||
CFLAGS:-Xa -v -O -K i486,host,inline,loop_unroll -Dsvr4
|
CFLAGS:-v -O -K i486,host,inline,loop_unroll -Dsvr4
|
||||||
SHARED_LIB:-K PIC
|
SHARED_LIB:-K PIC
|
||||||
SRCH_INC:
|
SRCH_INC:
|
||||||
SRCH_LIB:
|
SRCH_LIB:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
AROPT:crs
|
AROPT:crs
|
||||||
CFLAGS:-Xa -v -O -K i486,host,inline,loop_unroll,alloca -Dsvr4
|
CFLAGS:-O -K i486,host,inline,loop_unroll,alloca -Dsvr4
|
||||||
SHARED_LIB:-K PIC
|
SHARED_LIB:-K PIC
|
||||||
SRCH_INC:/opt/include
|
SRCH_INC:/opt/include
|
||||||
SRCH_LIB:/opt/lib
|
SRCH_LIB:/opt/lib
|
||||||
|
Loading…
x
Reference in New Issue
Block a user