Alexander Pyhalov
2013-07-21 5227fa7e3ce7a7529cad26b0810691cf59d1a123
Don't trust Perl $Config options while building modules. Enable perl 5.10 modules.
2 files modified
12 ■■■■ changed files
make-rules/makemaker.mk 2 ●●● patch | view | raw | blame | history
make-rules/shared-macros.mk 10 ●●●● patch | view | raw | blame | history
make-rules/makemaker.mk
@@ -61,7 +61,7 @@
    $(CLONEY) $(SOURCE_DIR) $(@D)
    $(COMPONENT_PRE_CONFIGURE_ACTION)
    (cd $(@D) ; $(COMPONENT_CONFIGURE_ENV) $(PERL) $(PERL_FLAGS) \
                Makefile.PL $(CONFIGURE_OPTIONS))
                Makefile.PL $(PERL_STUDIO_OVERWRITE) $(CONFIGURE_OPTIONS))
    $(COMPONENT_POST_CONFIGURE_ACTION)
    $(TOUCH) $@
make-rules/shared-macros.mk
@@ -313,7 +313,7 @@
PERL_VERSION =  5.16
#PERL_VERSIONS = 5.10.0 5.12 5.16
PERL_VERSIONS = 5.16
PERL_VERSIONS = 5.10.0 5.16
PERL.5.10.0 =     /usr/perl5/5.10.0/bin/perl
PERL.5.12 =     /usr/perl5/5.12/bin/perl
@@ -328,7 +328,6 @@
# inside perl builds while we actually need a full path to
# the studio compiler.
#PERL_CC :=    $(shell $(PERL) -e 'use Config; print $$Config{cc}')
PERL_OPTIMIZE :=$(shell $(PERL) -e 'use Config; print $$Config{optimize}')
PKG_MACROS +=   PERL_ARCH=$(PERL_ARCH)
PKG_MACROS +=   PERL_VERSION=$(PERL_VERSION)
@@ -683,6 +682,13 @@
    LD_OPTIONS="$(LD_OPTIONS)" \
    LD_EXEC_OPTIONS="$(LD_EXEC_OPTIONS)"
# PERL options which depend on C options should be placed here
# Don't trust Perl $Config{optimize}, we can get Studio flags
PERL_OPTIMIZE =$(gcc_OPT)
# We need this to overwrite options of perl used to compile illumos-gate
PERL_STUDIO_OVERWRITE = cc="$(CC)" cccdlflags="$(CC_PIC)" ld="$(CC)" ccname="$(shell basename $(CC))" optimize="$(gcc_OPT)"
# Add any bit-specific settings
COMPONENT_BUILD_ENV += $(COMPONENT_BUILD_ENV.$(BITS))
COMPONENT_BUILD_ARGS += $(COMPONENT_BUILD_ARGS.$(BITS))