Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
19c29f92
Commit
19c29f92
authored
25 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
New plperl Makefile.
parent
8daa31a2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
HISTORY
+1
-1
1 addition, 1 deletion
HISTORY
src/pl/plperl/Makefile.PL
+20
-87
20 additions, 87 deletions
src/pl/plperl/Makefile.PL
with
21 additions
and
88 deletions
HISTORY
+
1
−
1
View file @
19c29f92
...
...
@@ -313,7 +313,7 @@ Allow pgsql to work on newer Cygwin snapshots(Dan)
New catalog version number (Tom)
Add Linux ARM.
Rename heap_replace to heap_update
Update for QNX (Kardos, Dr. Andrea)
Update for QNX (Kardos, Dr. Andrea
s
)
New platform-specific regression handling (Tom)
Rename oid8 -> oidvector and int28 -> int2vector (Bruce)
Included all yacc and lex files into the distribution (Peter E.)
...
...
This diff is collapsed.
Click to expand it.
src/pl/plperl/Makefile.PL
+
20
−
87
View file @
19c29f92
use
ExtUtils::
MakeMaker
;
use
ExtUtils::
Embed
;
use
DynaLoader
;
use
Config
;
use
ExtUtils::
Embed
;
#
# massage the ld options
#
my
$ldopts
=
ldopts
();
chomp
(
$ldopts
);
#
# get the location of the Opcode module
...
...
@@ -30,91 +25,29 @@ my $opcode = '';
}
open
(
MAKEFILE
,
"
>Makefile
");
print
MAKEFILE
<<_STATIC_;
#-------------------------------------------------------------------------
#
# Makefile
# Makefile for the plperl shared object
#
# AUTOGENERATED Makefile.pl
#
#
# Tell make where the postgresql sources live
#
SRCDIR= ../../../src
include \$(SRCDIR)/Makefile.global
EXTDIR= $Config{privlib}/ExtUtils
XSUBPP= \$(EXTDIR)/xsubpp
TYPEMAP= -typemap \$(EXTDIR)/typemap
# use the same compiler as perl did
CC= $Config{cc}
# use the same compiler options as perl did, too
CFLAGS= @{[ccopts()]}
# including the ones for dynamic loading
CFLAGS+= $Config{cccdlflags}
# now add the includes for postgreSQL
CFLAGS+= -I\$(LIBPQDIR) -I\$(SRCDIR)/include -I\$(SRCDIR)/backend
WriteMakefile
(
'
NAME
'
=>
'
plperl
',
dynamic_lib
=>
{
'
OTHERLDFLAGS
'
=>
"
$opcode
-L
\$
(LIBPQDIR) -lpq
@{
[
ldopts
()]
}
"
}
,
INC
=>
'
-I$(LIBPQDIR) -I$(SRCDIR)/include -I$(SRCDIR)/backend
',
XS
=>
{
'
SPI.xs
'
=>
'
SPI.c
'
},
OBJECT
=>
'
plperl.o eloglvl.o SPI.o
',
);
# add the postgreSQL libraries
LDADD+= -L\$(LIBPQDIR) -lpq
sub
MY
::post_initialize {
LDFLAGS+= $Config{lddlflags} \\
$ldopts \\
-lperl
q[
SRCDIR=../../../src
include $(SRCDIR)/Makefile.global
]
;
#
# DLOBJS is the dynamically-loaded object file.
#
DLOBJS= plperl\$(DLSUFFIX)
INFILES= \$(DLOBJS)
SHLIB_EXTRA_LIBS+= $opcode
#
# plus exports files
#
ifdef EXPSUFF
INFILES+= \$(DLOBJS:.o=\$(EXPSUFF))
endif
%.so: %.o
\$(CC) -o \$@ \$< \$(LDFLAGS) \$(SHLIB_EXTRA_LIBS) \$(LDADD)
#
# Build the shared lib
#
all: plperl
plperl : plperl.o SPI.o
\$(CC) -o plperl.so plperl.o SPI.o \$(SHLIB_EXTRA_LIBS) \$(LDADD) \$(LDFLAGS)
%.o : %.c
\$(CC) -c \$(CFLAGS) \$<
}
%.o : %.xs
\$(XSUBPP) \$(TYPEMAP) \$< > xtmp.c
\$(CC) -c \$(CFLAGS) -o \$@ xtmp.c
sub
MY
::install {
q[
install :: all
cp $(INST_DYNAMIC) $(LIBDIR)
]
;
#
# Clean
#
clean:
rm -f \$(INFILES) *.o xtmp.c
rm -rf .libs
rm -f Makefile
}
dep depend:
_STATIC_
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment