perl: Fix uClibc handling
authorMarcel Denia <naoir@gmx.net>
Mon, 30 Nov 2015 00:31:37 +0000 (01:31 +0100)
committerMarcel Denia <naoir@gmx.net>
Mon, 30 Nov 2015 00:36:46 +0000 (01:36 +0100)
Configuration scripts expect the libc identifier to be "uclibc" in case we're using it,
OpenWrt provides "uClibc". Oh well...

Signed-off-by: Marcel Denia <naoir@gmx.net>
lang/perl/Makefile

index 6cfd289b7c1e01b57b0e3ea836ce6d43dc9e97a4..a1b7f4279e964ace416c9666512f939765fc5985 100644 (file)
@@ -97,7 +97,7 @@ define Build/Configure
                                        -Dowrt:target_cross='$(TARGET_CROSS)' \
                                        -Dowrt:cflags='$(TARGET_CFLAGS_PERL) $(TARGET_CPPFLAGS_PERL)' \
                                        -Dowrt:ldflags='-rdynamic $(TARGET_LDFLAGS)' \
-                                       -Dowrt:libc=$(CONFIG_LIBC) \
+                                       -Dowrt:libc=$(subst uClibc,uclibc,$(CONFIG_LIBC)) \
                                        -Dowrt:ipv6=$(if $($(CONFIG_IPV6)),define,undef) \
                                        -Dowrt:threads=$(if $(CONFIG_PERL_THREADS),yes,no) \
                                        -Dowrt:staging_dir='$(STAGING_DIR)' \