in reply to Re^2: How To Link -lperl to Extensions During Build
in thread How To Link -lperl to Extensions During Build
Hmm. Not sure what the correct approach might be, but here's one possible hack to try:
This would compile and install perl twice, second time linking any shared objects against libperl. You may also want a ,-rpath,/foo... in the flags. But if you make a symlink in $KBOX/usr/lib to libperl.so, then neither -L nor -rpath should be required../Configure -des -Dprefix=/foo -Dcc=gcc -Duseshrplib make install; make distclean ./Configure -des -Dprefix=/foo -Dcc=gcc -Duseshrplib \ -Alddlflags='-shared -O2 -Wl,-E,-L/foo/lib/perl5/5.20.2/armv7l-linux +-android/CORE,-as-needed,-lperl,-no-as-needed' make install
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How To Link -lperl to Extensions During Build
by cyd (Novice) on May 12, 2015 at 20:15 UTC | |
by Anonymous Monk on May 12, 2015 at 23:13 UTC | |
by cyd (Novice) on May 13, 2015 at 01:00 UTC | |
by cyd (Novice) on May 14, 2015 at 18:13 UTC | |
by Anonymous Monk on May 14, 2015 at 19:20 UTC | |
by cyd (Novice) on May 14, 2015 at 21:17 UTC | |
by cyd (Novice) on May 15, 2015 at 00:18 UTC | |
| |
|
Re^4: How To Link -lperl to Extensions During Build
by cyd (Novice) on May 13, 2015 at 13:50 UTC | |
by cyd (Novice) on May 14, 2015 at 01:13 UTC |