Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
7662419f
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7662419f
编写于
5月 28, 2002
作者:
P
Peter Eisentraut
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Change PL/Perl and Pg interface build to use configured compiler and
Makefile.shlib system, not MakeMaker.
上级
de1f586f
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
165 addition
and
195 deletion
+165
-195
config/perl.m4
config/perl.m4
+24
-16
configure
configure
+41
-12
configure.in
configure.in
+4
-2
src/Makefile.global.in
src/Makefile.global.in
+6
-2
src/interfaces/perl5/GNUmakefile
src/interfaces/perl5/GNUmakefile
+48
-52
src/pl/plperl/GNUmakefile
src/pl/plperl/GNUmakefile
+42
-13
src/pl/plperl/Makefile.PL
src/pl/plperl/Makefile.PL
+0
-98
未找到文件。
config/perl.m4
浏览文件 @
7662419f
# $Header: /cvsroot/pgsql/config/perl.m4,v 1.
1 2001/08/26 22:28:04
petere Exp $
# $Header: /cvsroot/pgsql/config/perl.m4,v 1.
2 2002/05/28 16:57:53
petere Exp $
# PGAC_PATH_PERL
# PGAC_PATH_PERL
...
@@ -7,21 +7,29 @@ AC_DEFUN([PGAC_PATH_PERL],
...
@@ -7,21 +7,29 @@ AC_DEFUN([PGAC_PATH_PERL],
[AC_PATH_PROG(PERL, perl)])
[AC_PATH_PROG(PERL, perl)])
# PGAC_CHECK_PERL_DIRS
# PGAC_CHECK_PERL_CONFIG(NAME)
# ---------------------
# ----------------------------
AC_DEFUN([PGAC_CHECK_PERL_DIRS],
AC_DEFUN([PGAC_CHECK_PERL_CONFIG],
[
[AC_REQUIRE([PGAC_PATH_PERL])
AC_REQUIRE([PGAC_PATH_PERL])
AC_MSG_CHECKING([for Perl $1])
AC_MSG_CHECKING([Perl installation directories])
perl_$1=`$PERL -MConfig -e 'print $Config{$1}'`
AC_SUBST(perl_$1)dnl
AC_MSG_RESULT([$perl_$1])])
# These are the ones we currently need. Others can be added easily.
perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
perl_installsitelib=`$PERL -MConfig -e 'print $Config{installsitelib}'`
perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
AC_SUBST(perl_installsitearch)[]dnl
# PGAC_CHECK_PERL_CONFIGS(NAMES)
AC_SUBST(perl_installsitelib)[]dnl
# ------------------------------
AC_SUBST(perl_installman3dir)[]dnl
AC_DEFUN([PGAC_CHECK_PERL_CONFIGS],
[m4_foreach([pgac_item], [$1], [PGAC_CHECK_PERL_CONFIG(pgac_item)])])
AC_MSG_RESULT(done)
])
# PGAC_CHECK_PERL_EMBED_LDFLAGS
# -----------------------------
AC_DEFUN([PGAC_CHECK_PERL_EMBED_LDFLAGS],
[AC_REQUIRE([PGAC_PATH_PERL])
AC_MSG_CHECKING(for flags to link embedded Perl)
pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
AC_SUBST(perl_embed_ldflags)dnl
AC_MSG_RESULT([$perl_embed_ldflags])])
configure
浏览文件 @
7662419f
...
@@ -4956,19 +4956,44 @@ fi
...
@@ -4956,19 +4956,44 @@ fi
if
test
"
$with_perl
"
=
yes
;
then
if
test
"
$with_perl
"
=
yes
;
then
echo
"
$as_me
:
$LINENO
: checking for Perl installsitearch"
>
&5
echo
"
$as_me
:
$LINENO
: checking Perl installation directories"
>
&5
echo
$ECHO_N
"checking for Perl installsitearch...
$ECHO_C
"
>
&6
echo
$ECHO_N
"checking Perl installation directories...
$ECHO_C
"
>
&6
# These are the ones we currently need. Others can be added easily.
perl_installsitearch
=
`
$PERL
-MConfig
-e
'print $Config{installsitearch}'
`
perl_installsitearch
=
`
$PERL
-MConfig
-e
'print $Config{installsitearch}'
`
perl_installsitelib
=
`
$PERL
-MConfig
-e
'print $Config{installsitelib}'
`
echo
"
$as_me
:
$LINENO
: result:
$perl_installsitearch
"
>
&5
echo
"
${
ECHO_T
}
$perl_installsitearch
"
>
&6
echo
"
$as_me
:
$LINENO
: checking for Perl installman3dir"
>
&5
echo
$ECHO_N
"checking for Perl installman3dir...
$ECHO_C
"
>
&6
perl_installman3dir
=
`
$PERL
-MConfig
-e
'print $Config{installman3dir}'
`
perl_installman3dir
=
`
$PERL
-MConfig
-e
'print $Config{installman3dir}'
`
echo
"
$as_me
:
$LINENO
: result:
$perl_installman3dir
"
>
&5
echo
"
${
ECHO_T
}
$perl_installman3dir
"
>
&6
echo
"
$as_me
:
$LINENO
: result: done"
>
&5
echo
"
$as_me
:
$LINENO
: checking for Perl archlibexp"
>
&5
echo
"
${
ECHO_T
}
done"
>
&6
echo
$ECHO_N
"checking for Perl archlibexp...
$ECHO_C
"
>
&6
perl_archlibexp
=
`
$PERL
-MConfig
-e
'print $Config{archlibexp}'
`
echo
"
$as_me
:
$LINENO
: result:
$perl_archlibexp
"
>
&5
echo
"
${
ECHO_T
}
$perl_archlibexp
"
>
&6
echo
"
$as_me
:
$LINENO
: checking for Perl privlibexp"
>
&5
echo
$ECHO_N
"checking for Perl privlibexp...
$ECHO_C
"
>
&6
perl_privlibexp
=
`
$PERL
-MConfig
-e
'print $Config{privlibexp}'
`
echo
"
$as_me
:
$LINENO
: result:
$perl_privlibexp
"
>
&5
echo
"
${
ECHO_T
}
$perl_privlibexp
"
>
&6
echo
"
$as_me
:
$LINENO
: checking for Perl useshrplib"
>
&5
echo
$ECHO_N
"checking for Perl useshrplib...
$ECHO_C
"
>
&6
perl_useshrplib
=
`
$PERL
-MConfig
-e
'print $Config{useshrplib}'
`
echo
"
$as_me
:
$LINENO
: result:
$perl_useshrplib
"
>
&5
echo
"
${
ECHO_T
}
$perl_useshrplib
"
>
&6
echo
"
$as_me
:
$LINENO
: checking for Perl man3ext"
>
&5
echo
$ECHO_N
"checking for Perl man3ext...
$ECHO_C
"
>
&6
perl_man3ext
=
`
$PERL
-MConfig
-e
'print $Config{man3ext}'
`
echo
"
$as_me
:
$LINENO
: result:
$perl_man3ext
"
>
&5
echo
"
${
ECHO_T
}
$perl_man3ext
"
>
&6
echo
"
$as_me
:
$LINENO
: checking for flags to link embedded Perl"
>
&5
echo
$ECHO_N
"checking for flags to link embedded Perl...
$ECHO_C
"
>
&6
pgac_tmp1
=
`
$PERL
-MExtUtils
::Embed
-e
ldopts
`
pgac_tmp2
=
`
$PERL
-MConfig
-e
'print $Config{ccdlflags}'
`
perl_embed_ldflags
=
`
echo
X
"
$pgac_tmp1
"
|
sed
"s/^X//;s%
$pgac_tmp2
%%"
`
echo
"
$as_me
:
$LINENO
: result:
$perl_embed_ldflags
"
>
&5
echo
"
${
ECHO_T
}
$perl_embed_ldflags
"
>
&6
fi
fi
if
test
"
$with_python
"
=
yes
;
then
if
test
"
$with_python
"
=
yes
;
then
...
@@ -17414,8 +17439,12 @@ s,@YFLAGS@,$YFLAGS,;t t
...
@@ -17414,8 +17439,12 @@ s,@YFLAGS@,$YFLAGS,;t t
s,@WISH@,
$WISH
,;t t
s,@WISH@,
$WISH
,;t t
s,@PERL@,
$PERL
,;t t
s,@PERL@,
$PERL
,;t t
s,@perl_installsitearch@,
$perl_installsitearch
,;t t
s,@perl_installsitearch@,
$perl_installsitearch
,;t t
s,@perl_installsitelib@,
$perl_installsitelib
,;t t
s,@perl_installman3dir@,
$perl_installman3dir
,;t t
s,@perl_installman3dir@,
$perl_installman3dir
,;t t
s,@perl_archlibexp@,
$perl_archlibexp
,;t t
s,@perl_privlibexp@,
$perl_privlibexp
,;t t
s,@perl_useshrplib@,
$perl_useshrplib
,;t t
s,@perl_man3ext@,
$perl_man3ext
,;t t
s,@perl_embed_ldflags@,
$perl_embed_ldflags
,;t t
s,@PYTHON@,
$PYTHON
,;t t
s,@PYTHON@,
$PYTHON
,;t t
s,@python_version@,
$python_version
,;t t
s,@python_version@,
$python_version
,;t t
s,@python_prefix@,
$python_prefix
,;t t
s,@python_prefix@,
$python_prefix
,;t t
...
...
configure.in
浏览文件 @
7662419f
dnl Process this file with autoconf to produce a configure script.
dnl Process this file with autoconf to produce a configure script.
dnl $Header: /cvsroot/pgsql/configure.in,v 1.18
5 2002/05/24 18:10:17
petere Exp $
dnl $Header: /cvsroot/pgsql/configure.in,v 1.18
6 2002/05/28 16:57:53
petere Exp $
dnl
dnl
dnl Developers, please strive to achieve this order:
dnl Developers, please strive to achieve this order:
dnl
dnl
...
@@ -661,7 +661,9 @@ fi
...
@@ -661,7 +661,9 @@ fi
PGAC_PATH_PERL
PGAC_PATH_PERL
if test "$with_perl" = yes; then
if test "$with_perl" = yes; then
PGAC_CHECK_PERL_DIRS
PGAC_CHECK_PERL_CONFIGS([installsitearch,installman3dir,
archlibexp,privlibexp,useshrplib,man3ext])
PGAC_CHECK_PERL_EMBED_LDFLAGS
fi
fi
if test "$with_python" = yes; then
if test "$with_python" = yes; then
...
...
src/Makefile.global.in
浏览文件 @
7662419f
# -*-makefile-*-
# -*-makefile-*-
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.14
7 2002/05/24 18:10:17
petere Exp $
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.14
8 2002/05/28 16:57:53
petere Exp $
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# All PostgreSQL makefiles include this file and use the variables it sets,
# All PostgreSQL makefiles include this file and use the variables it sets,
...
@@ -214,8 +214,12 @@ X = @EXEEXT@
...
@@ -214,8 +214,12 @@ X = @EXEEXT@
PERL
=
@PERL@
PERL
=
@PERL@
perl_installsitearch
=
@perl_installsitearch@
perl_installsitearch
=
@perl_installsitearch@
perl_installsitelib
=
@perl_installsitelib@
perl_installman3dir
=
@perl_installman3dir@
perl_installman3dir
=
@perl_installman3dir@
perl_archlibexp
=
@perl_archlibexp@
perl_privlibexp
=
@perl_privlibexp@
perl_useshrplib
=
@perl_useshrplib@
perl_embed_ldflags
=
@perl_embed_ldflags@
perl_man3ext
=
@perl_man3ext@
# Miscellaneous
# Miscellaneous
...
...
src/interfaces/perl5/GNUmakefile
浏览文件 @
7662419f
# This file is an interface from the Autoconf world to Perl's
# $Header: /cvsroot/pgsql/src/interfaces/perl5/Attic/GNUmakefile,v 1.7 2002/05/28 16:57:53 petere Exp $
# MakeMaker world, so that the latter behaves (kind of) like the
# former would prefer. Internally, we call Perl to create another
# Makefile according to its own ideas and then invoke the rules from
# that file.
#
# $Header: /cvsroot/pgsql/src/interfaces/perl5/Attic/GNUmakefile,v 1.6 2001/08/26 22:28:04 petere Exp $
subdir
=
src/interfaces/perl5
subdir
=
src/interfaces/perl5
top_builddir
=
../../..
top_builddir
=
../../..
include
$(top_builddir)/src/Makefile.global
include
$(top_builddir)/src/Makefile.global
.NOTPARALLEL
:
# This would allow a non-root install of the Perl module, but it's not
# This would allow a non-root install of the Perl module, but it's not
# quite implemented yet.
# quite implemented yet.
ifeq
($(mysterious_feature),yes)
ifeq
($(mysterious_feature),yes)
...
@@ -20,31 +12,49 @@ perl_installsitelib = $(pkglibdir)
...
@@ -20,31 +12,49 @@ perl_installsitelib = $(pkglibdir)
perl_installman3dir
=
$(mandir)
/man3
perl_installman3dir
=
$(mandir)
/man3
endif
endif
override CPPFLAGS
:
= -I$(libpq_srcdir) -I$(top_srcdir)/src/include $(CPPFLAGS) -I$(perl_archlibexp)/CORE
override
CFLAGS
+=
$(CFLAGS_SL)
override CPPFLAGS += -DXS_VERSION=\"$(shell sed -n "s/\$$.*
::
VERSION.*=.*'
\(
.*
\)
';/
\1
/p" $(srcdir)/Pg.pm)
\"
# The code isn't clean with regard to these warnings.
ifeq
($(GCC),yes)
override CFLAGS
:
= $(filter-out -Wall -Wmissing-declarations -Wmissing-prototypes
,
$(CFLAGS))
endif
POD2MAN
=
pod2man
NAME
=
Pg
OBJS
=
Pg.o
SO_MAJOR_VERSION
=
0
SO_MINOR_VERSION
=
0
SHLIB_LINK
=
-L
$(libpq_builddir)
-lpq
include
$(top_srcdir)/src/Makefile.shlib
all
:
Makefile libpq-all
all
:
all-lib Pg.pm Pg.bs auto/Pg/autosplit.ix Pg.$(perl_man3ext)
$(MAKE)
-f
$<
all
VPATH
=
$(VPATH)
all-lib
:
libpq-all
# We need to run Makefile.PL in the source directory because it scans
# the directory for files to build with. If we ran it in the build
# dir it would miss all the files and not build half the stuff!
Makefile
:
Makefile.PL Pg.pm
abs_builddir
=
`
pwd
`
;
\
abs_libpq_builddir
=
`
cd
$(libpq_builddir)
&&
pwd
`
;
\
cd
$(srcdir)
&&
\
SRCDIR
=
$(srcdir)
\
PGLIBDIR
=
$(libdir)
\
$(PERL)
$<
\
INC
=
'-I
$(srcdir)
-I
$(libpq_srcdir)
$(
filter
-I%,
$(CPPFLAGS)
)
'
\
LIBS
=
"-L
$$
abs_libpq_builddir -lpq"
\
INSTALLSITEARCH
=
'$
$(DESTDIR)$(perl_installsitearch)
'
\
INSTALLSITELIB
=
'$
$(DESTDIR)$(perl_installsitelib)
'
\
INSTALLMAN3DIR
=
'$
$(DESTDIR)$(perl_installman3dir)
'
\
MAKEFILE
=
"
$$
abs_builddir/Makefile"
.PHONY
:
libpq-all
.PHONY
:
libpq-all
libpq-all
:
libpq-all
:
$(MAKE)
-C
$(libpq_builddir)
all
$(MAKE)
-C
$(libpq_builddir)
all
Pg.c
:
Pg.xs typemap
$(PERL)
$(perl_privlibexp)
/ExtUtils/xsubpp
-typemap
$(perl_privlibexp)
/ExtUtils/typemap
-typemap
$(srcdir)
/typemap
$(srcdir)
/Pg.xs
>
$@
auto/Pg/autosplit.ix
:
Pg.pm
@
$(mkinstalldirs)
auto
$(PERL)
-MAutoSplit
-e
'autosplit($$ARGV[0], $$ARGV[1], 0, 1, 1);'
$<
auto
Pg.bs
:
$(PERL)
-MExtUtils
::Mkbootstrap
-e
"Mkbootstrap('Pg', '');"
touch
$@
Pg.$(perl_man3ext)
:
Pg.pm
$(POD2MAN)
$<
$@
# During install, we must guard against the likelihood that we don't
# During install, we must guard against the likelihood that we don't
# have permissions to install into the Perl module library. It's not
# have permissions to install into the Perl module library. It's not
...
@@ -58,38 +68,24 @@ echo "*** `pwd`,"; \
...
@@ -58,38 +68,24 @@ echo "*** `pwd`,"; \
echo
"*** become the appropriate user, and enter '
$(MAKE)
install'."
;
\
echo
"*** become the appropriate user, and enter '
$(MAKE)
install'."
;
\
echo
""
;
}
echo
""
;
}
# We need to massage the packlist after installation to get the
# DESTDIR out of there.
install
:
all installdirs
install
:
all installdirs
@
if
test
-w
$(DESTDIR)$(perl_installsitearch)
;
then
\
@
if
test
-w
$(DESTDIR)$(perl_installsitearch)
;
then
\
$(MAKE)
-f
Makefile pure_install
DESTDIR
=
$(DESTDIR)
&&
\
$(INSTALL_DATA)
Pg.pm
$(DESTDIR)$(perl_installsitearch)
;
\
mv
$(DESTDIR)$(perl_installsitearch)
/auto/Pg/.packlist fake-packlist
&&
\
$(INSTALL_DATA)
Pg.bs
$(DESTDIR)$(perl_installsitearch)
/auto/Pg
;
\
sed
's,^
$(DESTDIR)
,,'
fake-packlist
>
$(DESTDIR)$(perl_installsitearch)
/auto/Pg/.packlist
&&
\
$(INSTALL_SHLIB)
$(shlib)
$(DESTDIR)$(perl_installsitearch)
/auto/Pg/Pg
$(DLSUFFIX)
;
\
rm
fake-packlist
;
\
$(INSTALL_DATA)
auto/Pg/autosplit.ix
$(DESTDIR)$(perl_installsitearch)
/auto/Pg
;
\
$(INSTALL_DATA)
$(srcdir)
/Pg.
$(perl_man3ext)
$(DESTDIR)$(perl_installman3dir)
;
\
else
\
else
\
$
(
install-warning-msg
)
;
\
$
(
install-warning-msg
)
;
\
fi
fi
# Try to make the directories ourselves, otherwise the writability
# test above may fail because of mere non-existence.
installdirs
:
installdirs
:
-
$(mkinstalldirs)
$(DESTDIR)$(perl_installsitearch)
/auto/Pg
\
-
$(mkinstalldirs)
$(DESTDIR)$(perl_installsitearch)
/auto/Pg
$(DESTDIR)$(perl_installman3dir)
$(DESTDIR)$(perl_installsitelib)
\
$(DESTDIR)$(perl_installman3dir)
uninstall
:
uninstall
:
for
file
in
`
cat
$(DESTDIR)$(perl_installsitearch)
/auto/Pg/.packlist
`
;
do
\
rm
-f
$(
addprefix
$(DESTDIR)$(perl_installsitearch)
/, Pg.pm auto/Pg/Pg.bs auto/Pg/Pg
$(DLSUFFIX)
auto/Pg/autosplit.ix
)
$(DESTDIR)$(perl_installman3dir)
/Pg.
$(perl_man3ext)
rm
-f
$(DESTDIR)$$
file
||
exit
;
\
done
rm
-f
$(DESTDIR)$(perl_installsitearch)
/auto/Pg/.packlist
-
rmdir
$(DESTDIR)$(perl_installsitearch)
/auto/Pg
clean distclean maintainer-clean
:
-
[
-f
Makefile
]
&&
$(MAKE)
-f
Makefile clean
rm
-f
Makefile Makefile.old
@
rm
-f
fake-packlist
installcheck test
:
Makefile
clean distclean maintainer-clean
:
clean-lib
$(MAKE)
-f
$<
test
rm
-f
$(OBJS)
Pg.c Pg.bs Pg.
$(perl_man3ext)
rm
-rf
auto
src/pl/plperl/GNUmakefile
浏览文件 @
7662419f
# $Header: /cvsroot/pgsql/src/pl/plperl/GNUmakefile,v 1.9 2002/02/23 21:49:10 momjian Exp $
# Makefile for PL/Perl
# $Header: /cvsroot/pgsql/src/pl/plperl/GNUmakefile,v 1.10 2002/05/28 16:57:53 petere Exp $
subdir
=
src/pl/plperl
subdir
=
src/pl/plperl
top_builddir
=
../../..
top_builddir
=
../../..
include
$(top_builddir)/src/Makefile.global
include
$(top_builddir)/src/Makefile.global
ifeq
($(
allow_nonpic_in_shlib),yes
)
ifeq
($(
perl_useshrplib),true
)
makefile_pl_flags
=
--force
shared_libperl
=
yes
endif
endif
# If we don't have a shared library and the platform doesn't allow it
# to work without, we have to skip it.
ifneq
(,$(findstring yes, $(shared_libperl)$(allow_nonpic_in_shlib)))
all
:
Makefile
# The code isn't clean with regard to these warnings.
$(MAKE)
-f
$<
all
VPATH
=
$(VPATH)
ifeq
($(GCC),yes)
override CFLAGS
:
= $(filter-out -Wall -Wmissing-declarations -Wmissing-prototypes
,
$(CFLAGS))
endif
override CPPFLAGS
:
= -I$(srcdir) -I$(perl_archlibexp)/CORE $(CPPFLAGS)
NAME
=
plperl
SO_MAJOR_VERSION
=
0
SO_MINOR_VERSION
=
0
OBJS
=
plperl.o eloglvl.o SPI.o
SHLIB_LINK
=
$(perl_embed_ldflags)
$(BE_DLLLIBS)
include
$(top_srcdir)/src/Makefile.shlib
Makefile
:
Makefile.PL
plperl_installdir
=
'$
$(DESTDIR)$(pkglibdir)
'
\
all
:
all-lib
$(PERL)
$<
$(makefile_pl_flags)
LIBS
=
'
$(BE_DLLLIBS)
'
\
INC
=
'-I
$(srcdir)
$(
filter
-I%,
$(CPPFLAGS)
)
'
SPI.c
:
SPI.xs
$(PERL)
$(perl_privlibexp)
/ExtUtils/xsubpp
-typemap
$(perl_privlibexp)
/ExtUtils/typemap
$<
>
$@
install
:
all installdirs
install
:
all installdirs
$(
MAKE)
-f
Makefile
install
DESTDIR
=
'
$(DESTDIR)
'
$(
INSTALL_SHLIB)
$(shlib)
$(DESTDIR)$(pkglibdir)
/plperl
$(DLSUFFIX)
installdirs
:
installdirs
:
$(mkinstalldirs)
$(DESTDIR)$(pkglibdir)
$(mkinstalldirs)
$(DESTDIR)$(pkglibdir)
...
@@ -26,6 +45,16 @@ installdirs:
...
@@ -26,6 +45,16 @@ installdirs:
uninstall
:
uninstall
:
rm
-f
$(DESTDIR)$(pkglibdir)
/plperl
$(DLSUFFIX)
rm
-f
$(DESTDIR)$(pkglibdir)
/plperl
$(DLSUFFIX)
clean distclean maintainer-clean
:
clean distclean maintainer-clean
:
clean-lib
-
[
-f
Makefile
]
&&
$(MAKE)
-f
Makefile clean
rm
-f
SPI.c
$(OBJS)
rm
-f
Makefile Makefile.old
else
# can't build
all
:
@
echo
""
;
\
echo
"*** Cannot build PL/Perl because libperl is not a shared library."
;
\
echo
"*** You might have to rebuild your Perl installation. Refer to"
;
\
echo
"*** the documentation for details."
;
\
echo
""
endif
# can't build
src/pl/plperl/Makefile.PL
已删除
100644 → 0
浏览文件 @
de1f586f
use
ExtUtils::
MakeMaker
;
use
ExtUtils::
Embed
;
use
DynaLoader
;
use
Config
;
# On some platforms you can't build plperl unless libperl is a shared
# library. (Actually, it would be enough if code in libperl.a is
# compiled to be position-independent, but that is hard to check for
# and seems pretty unlikely anyway.) On some platforms it doesn't
# matter and they can pass in the --force flag to build anyway.
# (Having a shared libperl is still a lot better for efficiency,
# though.)
if
(
$Config
{'
useshrplib
'}
ne
'
true
'
&&
$ARGV
[
0
]
ne
'
--force
')
{
open
(
OUT
,
"
>Makefile
")
or
die
"
Can't write Makefile: $!
\n
";
print
OUT
<<'EndOfMakefile';
# Dummy Makefile for use when we can't build plperl
all:
@echo ""; \
echo "*** Cannot build PL/Perl because libperl is not a shared library." ; \
echo "*** You might have to rebuild your Perl installation. Refer to"; \
echo "*** the documentation for details."; \
echo ""
install:
clean realclean:
rm -f Makefile
EndOfMakefile
close
(
OUT
);
exit
(
0
);
}
my
$ldopts
=
ldopts
();
$ldopts
=~
s/$Config{ccdlflags}//
;
WriteMakefile
(
'
NAME
'
=>
'
plperl
',
dynamic_lib
=>
{
'
OTHERLDFLAGS
'
=>
$ldopts
}
,
XS
=>
{
'
SPI.xs
'
=>
'
SPI.c
'
},
OBJECT
=>
'
plperl.o eloglvl.o SPI.o
',
);
sub
MY
::cflags {
package
MY
;
# so that "SUPER" works right
my
$inherited
=
shift
->
SUPER::
cflags
(
@
_
);
#
# Hack for building on HPUX (probably should have a general mechanism
# for system-specific hints, but for now ...)
# The default compiler and flags on this platform is cc -Aa, which
# will reject 'long long' declarations that appear in Postgres headers.
# Need to select -Ae instead.
#
if
(
$
Config::
Config
{'
osname
'}
eq
'
hpux
')
{
$inherited
=~
s/-Aa/-Ae/
;
}
$inherited
;
}
sub
MY
::install {
qq[
install :: all
cp \$(INST_DYNAMIC) $ENV{plperl_installdir}
]
;
}
sub
MY
::xs_o {
'';
}
sub
MY
::makefile {
'';
}
# VPATH-aware version of this rule
sub
MY
::xs_c {
my
(
$self
)
=
shift
;
return
''
unless
$self
->
needs_linking
();
'
.xs.c:
$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSPROTOARG) $(XSUBPPARGS) $< > $@
';
}
# somebody doesn't know how to write make rules...
sub
MY
::c_o {
package
MY
;
# so that "SUPER" works right
my
$inherited
=
shift
->
SUPER::
c_o
(
@
_
);
$inherited
=~
s/\$\*\.\S+/\$\</g
;
$inherited
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录