If you really, really want to go that way, I think the -Dldflags or -Aldflags (for -Append) options to ./Configure are the way. But are you sure you don't want to use the cctools? They come with a shell window and make, gcc and all the shell utilities and at least I didn't need to jump through too many hoops when compiling Perl for Android.
The configure command I use to compile Perl 5.21.11 on Android is:
sh ./Configure -Dprefix=/storage/sdcard0/perl -des -Dusedevel -Dprefix=/data/local/perl-5.21.11/ -Dsysroot=/data/data/com.pdaxrom.cctools/root/cctools -Alibpth=/system/lib /vendor/lib -Dman1dir=none -Dman3dir=none -Dsite1man=none -Dsite3man=none -Dvendorman1=none -Dvendorman3=none -DNO_LOCALE
Also you might want to take a look at App::staticperl, which will try to compile a perl with all libraries linked statically into it.
In reply to Re: How To Link -lperl to Extensions During Build
by Corion
in thread How To Link -lperl to Extensions During Build
by cyd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |