We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent1fdf2ed commitc7a7949Copy full SHA for c7a7949
src/Makefile.shlib
@@ -6,7 +6,7 @@
6
# Copyright (c) 1998, Regents of the University of California
7
#
8
# IDENTIFICATION
9
-# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.31 2000/10/31 19:55:18 petere Exp $
+# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.32 2000/11/04 16:35:54 petere Exp $
10
11
#-------------------------------------------------------------------------
12
@@ -88,13 +88,13 @@ ifeq ($(enable_shared), yes)
88
89
# Try to keep the sections in some kind of order, folks...
90
91
-# XXX fix Makefile.aix
92
-ifneq ($(PORTNAME), aix)
93
- ifndef cplusplus
94
- override CFLAGS+= $(CFLAGS_SL)
95
- else
96
- override CXXFLAGS+= $(CFLAGS_SL)
+ifndef cplusplus
+ override CFLAGS+= $(CFLAGS_SL)
+else
+ ifndef CXXFLAGS_SL
+ CXXFLAGS_SL = $(CFLAGS_SL)
97
endif
+ override CXXFLAGS+= $(CXXFLAGS_SL)
98
99
100
src/makefiles/Makefile.aix
@@ -9,13 +9,12 @@ AROPT = crs
DLSUFFIX = .so
ifneq ($(GCC), yes)
ifeq ($(host_os), aix3.2.5)
-CFLAGS_SL = -e _nostart
+LDFLAGS_SL = -e _nostart
13
14
ifeq ($(host_os), aix4.1)
15
-CFLAGS_SL = -bnoentry
+LDFLAGS_SL = -bnoentry
16
17
18
-CFLAGS_SL += -lc
19
20
21
EXPSUFF= .exp
@@ -35,4 +34,4 @@ $(POSTGRES_IMP):
35
34
36
%$(DLSUFFIX): %.o %$(EXPSUFF)
37
@echo Making shared library $@ from $*.o, $*$(EXPSUFF), and installed postgres.imp
38
-$(CC) -Wl,-H512 -Wl,-bM:SRE -Wl,-bI:$(libdir)/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS) $(CFLAGS_SL)
+$(CC) -Wl,-H512 -Wl,-bM:SRE -Wl,-bI:$(libdir)/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS) $(LDFLAGS_SL) -lc
src/makefiles/Makefile.hpux
@@ -38,6 +38,11 @@ CFLAGS_SL = -fPIC
else
39
CFLAGS_SL = +z
40
41
+ifeq ($(GXX), yes)
42
+CXXFLAGS_SL = -fPIC
43
44
+CXXFLAGS_SL = +z
45
+endif
46
47
# Rule for building shared libs (currently used only for regression test
48
# shlib ... should go away, since this is not really enough knowledge)
src/makefiles/Makefile.solaris
@@ -1,4 +1,4 @@
1
-# $Header: /cvsroot/pgsql/src/makefiles/Makefile.solaris,v 1.4 2000/10/27 23:59:39 petere Exp $
+# $Header: /cvsroot/pgsql/src/makefiles/Makefile.solaris,v 1.5 2000/11/04 16:35:55 petere Exp $
2
3
AROPT = crs
4
@@ -16,6 +16,11 @@ CFLAGS_SL = -fPIC
CFLAGS_SL = -KPIC
22
+CXXFLAGS_SL = -KPIC
23
24
25
%.so: %.o
26
$(LD) -G -Bdynamic -o $@ $<
src/makefiles/Makefile.sunos4
@@ -6,6 +6,11 @@ CFLAGS_SL = -fPIC
CFLAGS_SL = -PIC
+CXXFLAGS_SL = -PIC
$(LD) -dc -dp -Bdynamic -o $@ $<
src/makefiles/Makefile.unixware
@@ -7,6 +7,11 @@ CFLAGS_SL = -fpic
CFLAGS_SL = -K PIC
+CXXFLAGS_SL = -fpic
+CXXFLAGS_SL = -K PIC