aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Francois Perrad <fperrad@gmail.com>2014-08-14 20:49:59 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-08-15 10:19:14 +0200
commit6057878756f6f58d613a40be9636581ae5950aa0 (patch)
treeafb04e763d45aec1bb0ab26ff2b9ba7c8d212173
parent1e9d40fc2396d823c21fa624651f3bd7c28f4b87 (diff)
downloadbuildroot-6057878756f6f58d613a40be9636581ae5950aa0.tar.gz
buildroot-6057878756f6f58d613a40be9636581ae5950aa0.tar.bz2
pkg-perl: fix build of perl XS packages
Set OPTIMIZE in order to avoid the use of the host $Config{optimize} value which could cause breakage when cross-compiling for the target. See discussion in http://lists.busybox.net/pipermail/buildroot/2014-August/104129.html Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/pkg-perl.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/pkg-perl.mk b/package/pkg-perl.mk
index f073d70a8a..51eaf5259b 100644
--- a/package/pkg-perl.mk
+++ b/package/pkg-perl.mk
@@ -56,6 +56,7 @@ define $(2)_CONFIGURE_CMDS
--config full_ar="$$(TARGET_AR)" \
--config cc="$$(TARGET_CC)" \
--config ccflags="$$(TARGET_CFLAGS)" \
+ --config optimize=" " \
--config ld="$$(TARGET_CC)" \
--config lddlflags="-shared $$(TARGET_LDFLAGS)" \
--config ldflags="$$(TARGET_LDFLAGS)" \
@@ -78,6 +79,7 @@ define $(2)_CONFIGURE_CMDS
FULL_AR="$$(TARGET_AR)" \
CC="$$(TARGET_CC)" \
CCFLAGS="$$(TARGET_CFLAGS)" \
+ OPTIMIZE=" " \
LD="$$(TARGET_CC)" \
LDDLFLAGS="-shared $$(TARGET_LDFLAGS)" \
LDFLAGS="$$(TARGET_LDFLAGS)" \