diff options
author | Andy Dougherty <doughera@lafayette.edu> | 2002-05-02 08:01:50 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-05-02 22:30:10 +0000 |
commit | 90202384f621331c49a1443656612a5d754b9a4b (patch) | |
tree | 1c629c12628d3e6ec2a956e2b9359abd75c8100a /Makefile.SH | |
parent | 39d52b90e226daa3c5e4ae8e0fa1cf1c93724f8b (diff) | |
download | perl-90202384f621331c49a1443656612a5d754b9a4b.tar.gz |
Re: Perl 5.8-to-be NetBSD testing?
Message-ID: <Pine.SOL.4.10.10205021156390.325-100000@maxwell.phys.lafayette.edu>
p4raw-id: //depot/perl@16356
Diffstat (limited to 'Makefile.SH')
-rw-r--r-- | Makefile.SH | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile.SH b/Makefile.SH index d30bbb4ae5..2c123c6750 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -36,6 +36,7 @@ true) esac pldlflags="$cccdlflags" + static_target='static_pic' case "${osname}${osvers}" in next4*) ld=libtool @@ -97,6 +98,7 @@ true) esac ;; *) pldlflags='' + static_target='static' ;; esac @@ -188,6 +190,13 @@ LIBPERL = $libperl LLIBPERL= $linklibperl SHRPENV = $shrpenv +# Static targets are ordinarily built without CCCDLFLAGS. However, +# if building a shared libperl.so that might later be linked into +# another application, then it might be appropriate to also build static +# extensions (usually just DynaLoader) with relocatable code (e.g. -fPIC +# for GNU cc). This is handled by ext/util/make_ext. +STATIC = $static_target + # The following is used to include the current directory in # the dynamic loader path you are building a shared libperl. LDLIBPTH = $ldlibpth @@ -843,13 +852,13 @@ regen_all: $(PERLYVMS) regen_headers regen_pods # DynaLoader may be needed for extensions that use Makefile.PL. $(DYNALOADER): miniperl$(EXE_EXT) preplibrary FORCE - @$(LDLIBPTH) sh ext/util/make_ext static $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL) + @$(LDLIBPTH) sh ext/util/make_ext $(STATIC) $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL) d_dummy $(dynamic_ext): miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE @$(LDLIBPTH) sh ext/util/make_ext dynamic $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL) s_dummy $(static_ext): miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE - @$(LDLIBPTH) sh ext/util/make_ext static $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL) + @$(LDLIBPTH) sh ext/util/make_ext $(STATIC) $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL) n_dummy $(nonxs_ext): miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE @$(LDLIBPTH) sh ext/util/make_ext nonxs $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL) |