summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorGisle Aas <gisle@activestate.com>2006-03-20 10:21:50 +0000
committerGisle Aas <gisle@activestate.com>2006-03-20 10:21:50 +0000
commit908fcb8bef8cbab8cfe098520d89599eb7d1a16c (patch)
tree77628cd2656f78dab69481aa469e39b9ff86f6ec /ext
parentbc6af7f8cb3d4ab094ae8df3969217a3682c9bed (diff)
downloadperl-908fcb8bef8cbab8cfe098520d89599eb7d1a16c.tar.gz
Move DynaLoader.o into libperl.so.
This avoids the need to statically link DynaLoader into the stub perl executable and make libperl.so provide all the code needed to get a functional embedded perl interpreter up running. As a side effect this also moves DynaLoader into libperl.a for non-useshrplib builds. Fixes [perl #32539] p4raw-id: //depot/perl@27549
Diffstat (limited to 'ext')
-rw-r--r--ext/DynaLoader/Makefile.PL7
-rw-r--r--ext/util/make_ext1
2 files changed, 8 insertions, 0 deletions
diff --git a/ext/DynaLoader/Makefile.PL b/ext/DynaLoader/Makefile.PL
index 30853c68df..f76994ef22 100644
--- a/ext/DynaLoader/Makefile.PL
+++ b/ext/DynaLoader/Makefile.PL
@@ -32,3 +32,10 @@ test-xs:
';
}
+sub MY::static {
+ '
+static :: $(FIRST_MAKEFILE) $(OBJECT)
+ $(RM_RF) $(PERL_SRC)/$(OBJECT)
+ $(CP) $(OBJECT) $(PERL_SRC)/$(OBJECT)
+';
+}
diff --git a/ext/util/make_ext b/ext/util/make_ext
index 30d007c279..d90b057b2a 100644
--- a/ext/util/make_ext
+++ b/ext/util/make_ext
@@ -65,6 +65,7 @@ ext*) # Remove ext/ prefix and /pm_to_blib suffix
pname=`echo "$extspec" | sed -e 's:^ext/::' -e 's:/pm_to_blib$::' ` ;;
*::*) # Convert :: to /
pname=`echo "$extspec" | sed -e 's/::/\//g' ` ;;
+*.o) pname=`echo "$extspec" | sed -e 's/\.o//'` ;;
*) pname="$extspec" ;;
esac
# echo "Converted $extspec to $pname"