diff options
| author | Andy Stormont <astormont@racktopsystems.com> | 2014-01-29 20:53:24 +0000 |
|---|---|---|
| committer | Dan McDonald <danmcd@omniti.com> | 2014-04-04 12:50:08 -0400 |
| commit | c9f77c52c0735e65aa2534394c5151cdb963cbef (patch) | |
| tree | 5170e70a63b36f653e635ddaece0b4720034031f /usr/src/cmd/perl/Makefile.targ | |
| parent | 7a3fc0ccaf807a654980fdce2d9187503628b99d (diff) | |
| download | illumos-joyent-c9f77c52c0735e65aa2534394c5151cdb963cbef.tar.gz | |
3900 illumos will not build against gcc compiled perl
4723 Remove unused perl extensions
Reviewed by: Keith Wesolowski <keith.wesolowski@joyent.com>
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/cmd/perl/Makefile.targ')
| -rw-r--r-- | usr/src/cmd/perl/Makefile.targ | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/usr/src/cmd/perl/Makefile.targ b/usr/src/cmd/perl/Makefile.targ new file mode 100644 index 0000000000..b3d7dbf30f --- /dev/null +++ b/usr/src/cmd/perl/Makefile.targ @@ -0,0 +1,43 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# +# +# Copyright (c) 2014 Racktop Systems. +# + +# Link against libc as perl solaris specs +$(PERLEXT):= LDLIBS += -lc + +# Allow for undefined symbols satisfied by perl +$(PERLEXT):= ZDEFS = + +$(MACH): + $(INS.dir) + +$(PERLEXT): $(MACH)/$(MODULE).o + $(BUILD.SO) $(MACH)/$(MODULE).o + +$(MACH)/$(MODULE).o: $(MACH)/$(MODULE).c + $(COMPILE.c) $(C_PICFLAGS) -I$(PERLINCDIR) $< -o $@ + +$(MACH)/$(MODULE).c: $(MACH) $(MODULE).xs + $(PERLDIR)/bin/xsubpp $(XSUBPPFLAGS) $(MODULE).xs >$@ + +$(ROOTPERLMODDIR): + $(INS.dir) + +$(ROOTPERLMOD): $(ROOTPERLMODDIR) $(MODULE).pm + $(RM) $@; $(INS) -s -m $(FILEMODE) -f $^ + +$(ROOTPERLEXTDIR): + $(INS.dir) + +$(ROOTPERLEXT): $(ROOTPERLEXTDIR) $(MACH)/$(MODULE).so + $(RM) $@; $(INS) -s -m $(FILEMODE) -f $^ |
