Mercurial > mxe-octave
changeset 4680:7471ffc18c61
build-perl, perl: build shared libperl
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 20 Apr 2018 17:33:02 -0400 |
parents | b2b5edaa3bcd |
children | 7914e218df3e |
files | src/build-perl.mk |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/build-perl.mk Fri Apr 20 16:30:27 2018 -0400 +++ b/src/build-perl.mk Fri Apr 20 17:33:02 2018 -0400 @@ -8,17 +8,23 @@ $(PKG)_SUBDIR := perl-$($(PKG)_VERSION) $(PKG)_FILE := perl-$($(PKG)_VERSION).tar.gz $(PKG)_URL := http://www.cpan.org/src/5.0/$($(PKG)_FILE) +$(PKG)_DEPS := -$(PKG)_DEPS := +ifeq ($(BUILD_SHARED),yes) + $(PKG)_CONFIGURE_ARGS := -Duseshrplib +endif ifeq ($(MXE_WINDOWS_BUILD),yes) define $(PKG)_BUILD endef else define $(PKG)_BUILD - cd '$(1)' && $($(PKG)_CONFIGURE_ENV) './Configure' -s -d -e -Dprefix='$(HOST_PREFIX)' \ + cd '$(1)' \ + && $($(PKG)_CONFIGURE_ENV) './Configure' -s -d -e \ + -Dprefix='$(HOST_PREFIX)' \ -D $(CONFIGURE_CPPFLAGS) -D $(CONFIGURE_LDFLAGS) \ - && $(CONFIGURE_POST_HOOK) + $($(PKG)_CONFIGURE_ARGS) \ + && $(CONFIGURE_POST_HOOK) $(MAKE) -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)' endef