perl: fix configure step
authorFrancois Perrad <fperrad@gmail.com>
Wed, 28 Nov 2012 06:09:20 +0000 (06:09 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 30 Nov 2012 20:17:08 +0000 (12:17 -0800)
Configure -A symbol=val generates a extra space in config.sh,
which causes failure like this :
    Building Module-Runtime-0.013
    Unknown OS type ' linux' - using default settings

[Arnout: use -A define:foo instead of patching config.sh]

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/perl/perl.mk

index 0893eb5b0c03b85fdee261a52f385390a529deaa..391047d382a68b86758beedfbbe97fdd56799be2 100644 (file)
@@ -55,14 +55,14 @@ PERL_CONF_OPT = \
        --target-tools-prefix=$(TARGET_CROSS) \
        --prefix=/usr \
        -Dld="$(TARGET_CC_NOCCACHE)" \
-       -ccflags="$(TARGET_CFLAGS)" \
-       -ldflags="$(TARGET_LDFLAGS) -lm" \
-       -A mydomain="" \
-       -A myhostname="$(BR2_TARGET_GENERIC_HOSTNAME)" \
-       -A myuname="Buildroot $(BR2_VERSION_FULL)" \
-       -A osname=linux \
-       -A osvers=$(LINUX_VERSION) \
-       -A perladmin=root
+       -Dccflags="$(TARGET_CFLAGS)" \
+       -Dldflags="$(TARGET_LDFLAGS) -lm" \
+       -A define:mydomain="" \
+       -A define:myhostname="$(BR2_TARGET_GENERIC_HOSTNAME)" \
+       -A define:myuname="Buildroot $(BR2_VERSION_FULL)" \
+       -A define:osname=linux \
+       -A define:osvers=$(LINUX_VERSION) \
+       -A define:perladmin=root
 
 ifeq ($(shell expr $(PERL_VERSION_MAJOR) % 2), 1)
     PERL_CONF_OPT += -Dusedevel