perl: refactor configure step
authorFrancois Perrad <fperrad@gmail.com>
Thu, 6 Dec 2012 21:38:07 +0000 (21:38 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 16 Dec 2012 00:09:16 +0000 (01:09 +0100)
After discussion with Perl-Cross's author (Alex Suykov)

Note: Using -A with variables that aren't option lists makes little sense.

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

index a86ee2afd49d95feaf533f320de67a50924ba229..da54ef1a1864198efef504af755bfd9162227f9c 100644 (file)
@@ -57,12 +57,12 @@ PERL_CONF_OPT = \
        -Dld="$(TARGET_CC_NOCCACHE)" \
        -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
+       -Dmydomain="" \
+       -Dmyhostname="$(BR2_TARGET_GENERIC_HOSTNAME)" \
+       -Dmyuname="Buildroot $(BR2_VERSION_FULL)" \
+       -Dosname=linux \
+       -Dosvers=$(LINUX_VERSION) \
+       -Dperladmin=root
 
 ifeq ($(shell expr $(PERL_VERSION_MAJOR) % 2), 1)
     PERL_CONF_OPT += -Dusedevel