Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
c2e73db8
Commit
c2e73db8
authored
Mar 25, 1997
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various patches for shared libraries under i386-solaris by:
Christoph Kaesling <ck@dog.pfalz.sub.de>
parent
6304e2c2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
15 deletions
+79
-15
src/interfaces/libpgtcl/Makefile
src/interfaces/libpgtcl/Makefile
+11
-9
src/interfaces/libpq++/Makefile
src/interfaces/libpq++/Makefile
+27
-5
src/interfaces/libpq/Makefile
src/interfaces/libpq/Makefile
+9
-1
src/port/i386_solaris.h
src/port/i386_solaris.h
+32
-0
No files found.
src/interfaces/libpgtcl/Makefile
View file @
c2e73db8
...
...
@@ -7,7 +7,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile,v 1.1
0 1997/03/17 22:05:08
scrappy Exp $
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile,v 1.1
1 1997/03/25 09:19:41
scrappy Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -30,24 +30,26 @@ ifeq ($(CC), gcc)
endif
shlib
:=
install-shlib-dep
:=
ifeq
($(PORTNAME), linux)
ifdef
LINUX_ELF
ifeq
($(CC), gcc)
CFLAGS
+=
-fpic
-fPIC
endif
shlib
:=
libpgtcl.so.1
install-shlib-dep
:=
install-shlib
LDFLAGS
+=
-L
../libpq
-lpq
endif
endif
ifeq
($(PORTNAME), i386_solaris)
CFLAGS
+=
-fPIC
endif
OBJS
=
pgtcl.o pgtclCmds.o pgtclId.o
ifdef
LINUX_ELF
shlib
:=
libpgtcl.so.1
install-shlib-dep
:=
install-shlib
LDFLAGS
+=
-L
../libpq
-lpq
else
shlib
:=
install-shlib-dep
:=
endif
all
:
libpgtcl.a $(shlib)
...
...
src/interfaces/libpq++/Makefile
View file @
c2e73db8
...
...
@@ -7,7 +7,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile,v 1.
6 1997/02/13 10:00:23
scrappy Exp $
# $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile,v 1.
7 1997/03/25 09:20:32
scrappy Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -39,7 +39,17 @@ endif
OBJS
=
pgenv.o pgconnection.o pgtransdb.o pgcursordb.o pglobject.o
all
:
$(LIBNAME).a install examples
# Shared library stuff
SHLIB
:=
INSTALL-SHLIB-DEP
:=
ifeq
($(PORTNAME), i386_solaris)
INSTALL-SHLIB-DEP
:=
install-shlib
SHLIB
:=
libpq++.so.1
LDFLAGS_SL
=
-G
-z
text
CFLAGS
+=
-fPIC
endif
all
:
$(LIBNAME).a $(SHLIB) install examples
$(LIBNAME).a
:
$(OBJS)
ifdef
MK_NO_LORDER
...
...
@@ -49,14 +59,17 @@ else
endif
$(RANLIB)
$(LIBNAME)
.a
$(SHLIB)
:
$(OBJS)
$(LD)
$(LDFLAGS)
$(LDFLAGS_SL)
-o
$@
$(OBJS)
.PHONY
:
examples
examples
:
$(MAKE)
-C
examples all
.PHONY
:
beforeinstall-headers install-headers
.PHONY
:
install install-$(LIBNAME) doc
.PHONY
:
install
beforeinstall-lib
install-$(LIBNAME) doc
install
:
install-headers install-$(LIBNAME) doc
install
:
install-headers install-$(LIBNAME)
$(INSTALL-SHLIB-DEP)
doc
LIBPGXXDIR
=
$(LIBNAME)
LIBPGXXHEADERDIR
=
$(HEADERDIR)
/
$(LIBPGXXDIR)
...
...
@@ -79,9 +92,18 @@ beforeinstall-headers:
@
if
[
!
-d
$(HEADERDIR)
]
;
then
mkdir
$(HEADERDIR)
;
fi
@
if
[
!
-d
$(LIBPGXXHEADERDIR)
]
;
then
mkdir
$(LIBPGXXHEADERDIR)
;
fi
install-$(LIBNAME)
:
$(LIBNAME).a
beforeinstall-lib
:
@
if
[
!
-d
$(DESTDIR)
/
$(LIBDIR)
]
;
then
mkdir
$(DESTDIR)
/
$(LIBDIR)
;
fi
install-$(LIBNAME)
:
$(LIBNAME).a beforeinstall-lib
$(INSTALL)
$(INSTL_LIB_OPTS)
$(LIBNAME)
.a
$(DESTDIR)$(LIBDIR)
/
$(LIBNAME)
.a
install-shlib
:
$(SHLIBNAME) beforeinstall-lib
$(INSTALL)
$(INSTL_SHLIB_OPTS)
$(SHLIB)
$(DESTDIR)
/
$(LIBDIR)
/
$(SHLIB)
rm
-f
$(DESTDIR)
/
$(LIBDIR)
/libpq++.so
ln
-sf
$(SHLIB)
$(DESTDIR)
/
$(LIBDIR)
/libpq++.so
doc
:
$(MAKE)
-C
man
install
...
...
src/interfaces/libpq/Makefile
View file @
c2e73db8
...
...
@@ -7,7 +7,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.3
2 1997/03/25 09:08:05
scrappy Exp $
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.3
3 1997/03/25 09:20:12
scrappy Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -42,6 +42,12 @@ ifeq ($(PORTNAME), BSD44_derived)
LDFLAGS_SL
=
-x
-Bshareable
-Bforcearchive
CFLAGS
+=
-fpic
-DPIC
endif
ifeq
($(PORTNAME), i386_solaris)
install-shlib-dep
:=
install-shlib
shlib
:=
libpq.so.1
LDFLAGS_SL
=
-G
-z
text
CFLAGS
+=
-fPIC
endif
all
:
libpq.a $(shlib) c.h
...
...
@@ -71,6 +77,8 @@ pqcomprim.c: ../backend/libpq/pqcomprim.c
$(shlib)
:
$(OBJS)
$(LD)
$(LDFLAGS)
$(LDFLAGS_SL)
-o
$@
$(OBJS)
ln
-sf
$@
libpq.so
c.h
:
../include/c.h
rm
-f
c.h
...
...
src/port/i386_solaris.h
View file @
c2e73db8
...
...
@@ -4,3 +4,35 @@
# define SYSV_DIRENT
# define HAS_TEST_AND_SET
typedef
unsigned
char
slock_t
;
#include <sys/isa_defs.h>
#ifndef BYTE_ORDER
#define BYTE_ORDER LITTLE_ENDIAN
#endif
#ifndef NAN
#ifndef __nan_bytes
#define __nan_bytes { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f }
#endif
/* __nan_bytes */
#ifdef __GNUC__
#define NAN \
(__extension__ ((union { unsigned char __c[8]; \
double __d; }) \
{ __nan_bytes }).__d)
#else
/* Not GCC. */
#define NAN (*(__const double *) __nan)
#endif
/* GCC. */
#endif
/* NAN */
#ifndef index
#define index strchr
#endif
#ifndef HAVE_RUSAGE
#define HAVE_RUSAGE 1
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment