From: Ian Cooper Date: Wed, 29 Apr 2020 12:16:32 +0000 (+0100) Subject: perl: fix compilation on x86_64 with glibc and ssp X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3d5ba0f094709c1ca98a39d1f080aa414c40d530;p=feed%2Fpackages.git perl: fix compilation on x86_64 with glibc and ssp perl fails to compile on x86_64 with glibc and stack smashing protection enabled due to libssp not being specified in the ldflags. Signed-off-by: Ian Cooper --- diff --git a/lang/perl/Makefile b/lang/perl/Makefile index 84d256d2d8..cbae4074a4 100644 --- a/lang/perl/Makefile +++ b/lang/perl/Makefile @@ -11,7 +11,7 @@ include perlver.mk PKG_NAME:=perl PKG_VERSION:=$(PERL_VERSION) -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE_URL:=\ https://cpan.metacpan.org/src/5.0 \ @@ -99,7 +99,7 @@ define Build/Configure -Dowrt:gccversion=$(CONFIG_GCC_VERSION) \ -Dowrt:target_cross='$(TARGET_CROSS)' \ -Dowrt:cflags='$(TARGET_CFLAGS_PERL) $(TARGET_CPPFLAGS_PERL)' \ - -Dowrt:ldflags='$(TARGET_LDFLAGS)' \ + -Dowrt:ldflags='$(TARGET_LDFLAGS) $(if $(CONFIG_GCC_LIBSSP),-lssp)' \ -Dowrt:libc=$(subst uClibc,uclibc,$(CONFIG_LIBC)) \ -Dowrt:ipv6=$(if $($(CONFIG_IPV6)),define,undef) \ -Dowrt:threads=$(if $(CONFIG_PERL_THREADS),yes,no) \