perl-module: Use unquoted perl config ld value
authorRyan Schmidt <git@ryandesign.com>
Mon, 3 Dec 2018 18:10:41 +0000 (12:10 -0600)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 2 Mar 2019 13:43:45 +0000 (14:43 +0100)
Fixes build failure when the perl config ld value contains multiple
words, such as on PowerPC Mac OS X where it may be a value like
'env MACOSX_DEPLOYMENT_TARGET=10.3 /usr/bin/gcc-4.2'.

perl-module/automake.mk

index b995d036dff9131d33230572fbad943bfa5f17e4..4f45a655955c2fc5ed59471d716a959bbef1232f 100644 (file)
@@ -44,7 +44,7 @@ perl-module/pspp-module-config: Makefile
 perl-module/Makefile: perl-module/Makefile.PL perl-module/pspp-module-config $(module_sources)
        $(AM_V_GEN)cd perl-module && $(PERL) Makefile.PL PREFIX=$(prefix) \
                                                          OPTIMIZE="$(CFLAGS) $(CPPFLAGS)" \
-                                                         LD="`$(PERL) -V::ld:` $(LDFLAGS)"
+                                                         LD="`$(PERL) -e 'use Config::Perl::V;print Config::Perl::V::myconfig()->{config}{ld};'` $(LDFLAGS)"
 
 perl-module/PSPP-Perl-$(VERSION_FOR_PERL).tar.gz: $(module_sources) perl-module/Makefile
        $(AM_V_at)rm -f $@