From: Bernhard Reutner-Fischer Date: Fri, 24 Nov 2006 09:49:16 +0000 (-0000) Subject: - fix microperl uconfig and pass the target cflags in properly. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35561e74c549c4b65a19fd52b8845b9427b5fc48;p=buildroot.git - fix microperl uconfig and pass the target cflags in properly. --- diff --git a/package/microperl/microperl.mk b/package/microperl/microperl.mk index c9dc955a71..cab17811a3 100644 --- a/package/microperl/microperl.mk +++ b/package/microperl/microperl.mk @@ -3,7 +3,8 @@ # microperl # ############################################################# -MICROPERL_VER=5.8.8 +MICROPERL_MAJ=5 +MICROPERL_VER=$(MICROPERL_MAJ).8.8 MICROPERL_SOURCE=perl-$(MICROPERL_VER).tar.bz2 MICROPERL_CAT:=$(BZCAT) MICROPERL_SITE=ftp://ftp.cpan.org/pub/CPAN/src/5.0 @@ -14,10 +15,22 @@ $(DL_DIR)/$(MICROPERL_SOURCE): $(MICROPERL_DIR)/.source: $(DL_DIR)/$(MICROPERL_SOURCE) $(MICROPERL_CAT) $(DL_DIR)/$(MICROPERL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - touch $(MICROPERL_DIR)/.source - -$(MICROPERL_DIR)/microperl: $(MICROPERL_DIR)/.source - $(MAKE) -f Makefile.micro CC=$(TARGET_CC) -C $(MICROPERL_DIR) + touch $@ + +$(MICROPERL_DIR)/.configured: $(MICROPERL_DIR)/.source + (cd $(MICROPERL_DIR) ; chmod u+w uconfig.h ; . ./uconfig.sh ; \ + make -f Makefile.micro regen_uconfig ; \ + $(SED) \ + 's,PRIVLIB ".*,PRIVLIB "/usr/lib/perl$(MICROPERL_MAJ)/$(MICROPERL_VER)",' \ + -e 's,PRIVLIB_EXP ".*,PRIVLIB_EXP "/usr/lib/perl$(MICROPERL_MAJ)/$(MICROPERL_VER)",' \ + -e 's,BIN ".*,BIN "/usr/bin",' \ + ./uconfig.h ; \ + ) + touch $@ + +$(MICROPERL_DIR)/microperl: $(MICROPERL_DIR)/.configured + $(MAKE) -f Makefile.micro CC=$(TARGET_CC) \ + OPTIMIZE="$(TARGET_CFLAGS)" -C $(MICROPERL_DIR) $(TARGET_DIR)/usr/bin/microperl: $(MICROPERL_DIR)/microperl cp -dpf $(MICROPERL_DIR)/microperl $(TARGET_DIR)/usr/bin/microperl