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
a0b7daa1
Commit
a0b7daa1
authored
May 17, 1999
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply freebsd specific patches dealign with ELF system from FreeBSD's ports collection ...
parent
61f618e7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
8 deletions
+15
-8
src/Makefile.shlib
src/Makefile.shlib
+4
-3
src/backend/port/dynloader/freebsd.c
src/backend/port/dynloader/freebsd.c
+2
-0
src/configure
src/configure
+1
-1
src/configure.in
src/configure.in
+1
-1
src/makefiles/Makefile.freebsd
src/makefiles/Makefile.freebsd
+7
-3
No files found.
src/Makefile.shlib
View file @
a0b7daa1
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
# Copyright (c) 1998, Regents of the University of California
# Copyright (c) 1998, Regents of the University of California
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.
8 1999/04/30 02:04:49 momjian
Exp $
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.
9 1999/05/17 04:13:24 scrappy
Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -59,10 +59,11 @@ install-shlib-dep :=
...
@@ -59,10 +59,11 @@ install-shlib-dep :=
ifeq
($(PORTNAME), freebsd)
ifeq
($(PORTNAME), freebsd)
ifdef
BSD_SHLIB
ifdef
BSD_SHLIB
install-shlib-dep
:=
install-shlib
install-shlib-dep
:=
install-shlib
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
ifdef
ELF_SYSTEM
ifdef
ELF_SYSTEM
LDFLAGS_SL
:=
-x
-Bshareable
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
LDFLAGS_SL
:=
-x
-shared
-soname
$(shlib)
else
else
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
LDFLAGS_SL
:=
-x
-Bshareable
-Bforcearchive
LDFLAGS_SL
:=
-x
-Bshareable
-Bforcearchive
endif
endif
CFLAGS
+=
$(CFLAGS_SL)
CFLAGS
+=
$(CFLAGS_SL)
...
...
src/backend/port/dynloader/freebsd.c
View file @
a0b7daa1
...
@@ -83,11 +83,13 @@ BSD44_derived_dlsym(void *handle, const char *name)
...
@@ -83,11 +83,13 @@ BSD44_derived_dlsym(void *handle, const char *name)
void
*
vp
;
void
*
vp
;
char
buf
[
BUFSIZ
];
char
buf
[
BUFSIZ
];
#ifndef __ELF__
if
(
*
name
!=
'_'
)
if
(
*
name
!=
'_'
)
{
{
sprintf
(
buf
,
"_%s"
,
name
);
sprintf
(
buf
,
"_%s"
,
name
);
name
=
buf
;
name
=
buf
;
}
}
#endif
if
((
vp
=
dlsym
(
handle
,
(
char
*
)
name
))
==
(
void
*
)
NULL
)
if
((
vp
=
dlsym
(
handle
,
(
char
*
)
name
))
==
(
void
*
)
NULL
)
sprintf
(
error_message
,
"dlsym (%s) failed"
,
name
);
sprintf
(
error_message
,
"dlsym (%s) failed"
,
name
);
return
vp
;
return
vp
;
...
...
src/configure
View file @
a0b7daa1
...
@@ -625,8 +625,8 @@ case "$host_os" in
...
@@ -625,8 +625,8 @@ case "$host_os" in
aux
*
)
os
=
aux
need_tas
=
no
;;
aux
*
)
os
=
aux
need_tas
=
no
;;
linux
*
)
os
=
linux
need_tas
=
no
;;
linux
*
)
os
=
linux
need_tas
=
no
;;
bsdi
*
)
os
=
bsdi
need_tas
=
no
;;
bsdi
*
)
os
=
bsdi
need_tas
=
no
;;
freebsd3
*
|
freebsd4
*
)
os
=
freebsd
need_tas
=
no
elf
=
yes
;;
freebsd1
*
|
freebsd2
*
)
os
=
freebsd
need_tas
=
no
;;
freebsd1
*
|
freebsd2
*
)
os
=
freebsd
need_tas
=
no
;;
freebsd
*
)
os
=
freebsd
need_tas
=
no
elf
=
yes
;;
netbsd
*
)
netbsd
*
)
os
=
bsd
need_tas
=
no
os
=
bsd
need_tas
=
no
case
"
$host_cpu
"
in
case
"
$host_cpu
"
in
...
...
src/configure.in
View file @
a0b7daa1
...
@@ -20,8 +20,8 @@ case "$host_os" in
...
@@ -20,8 +20,8 @@ case "$host_os" in
aux*) os=aux need_tas=no ;;
aux*) os=aux need_tas=no ;;
linux*) os=linux need_tas=no ;;
linux*) os=linux need_tas=no ;;
bsdi*) os=bsdi need_tas=no ;;
bsdi*) os=bsdi need_tas=no ;;
freebsd3*|freebsd4*) os=freebsd need_tas=no elf=yes ;;
freebsd1*|freebsd2*) os=freebsd need_tas=no ;;
freebsd1*|freebsd2*) os=freebsd need_tas=no ;;
freebsd*) os=freebsd need_tas=no elf=yes ;;
netbsd*)
netbsd*)
os=bsd need_tas=no
os=bsd need_tas=no
case "$host_cpu" in
case "$host_cpu" in
...
...
src/makefiles/Makefile.freebsd
View file @
a0b7daa1
ifdef
ELF_SYSTEM
LDFLAGS
+=
-export-dynamic
endif
%.so
:
%.o
%.so
:
%.o
ifdef
ELF_SYSTEM
$(LD)
-x
-shared
-o
$@
$<
else
$(LD)
-x
-r
-o
$<
.obj
$<
$(LD)
-x
-r
-o
$<
.obj
$<
@
echo
building shared object
$@
@
echo
building shared object
$@
@
rm
-f
$@
.pic
@
rm
-f
$@
.pic
@
${AR}
cq
$@
.pic
`
lorder
$<
.obj |
tsort
`
@
${AR}
cq
$@
.pic
`
lorder
$<
.obj |
tsort
`
${RANLIB}
$@
.pic
${RANLIB}
$@
.pic
@
rm
-f
$@
@
rm
-f
$@
ifdef
ELF_SYSTEM
$(LD)
-x
-Bshareable
-o
$@
$@
.pic
else
$(LD)
-x
-Bshareable
-Bforcearchive
-o
$@
$@
.pic
$(LD)
-x
-Bshareable
-Bforcearchive
-o
$@
$@
.pic
endif
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