source: trunk/third/perl/Makefile.athena @ 21706

Revision 21706, 1.2 KB checked in by ghudson, 20 years ago (diff)
We aren't using gnu ld any more, so remove the flags to account for that. We also aren't setting LD_RUN_PATH on Solaris, and this was one of the few places that safety net was used. Pass a run path on the link line instead.
Line 
1# $Id: Makefile.athena,v 1.22 2005-04-06 19:34:05 ghudson Exp $
2
3SHELL=/bin/sh
4
5dist:
6
7# Perl's Solaris hints file doesn't correctly detect that we are using
8# gnu ld, so we have to tell it to use -Wl,-E at link time.  (See
9# README.solaris.)
10prepare:
11        rm -f config.sh
12        case $$OS in \
13        linux) \
14          ./Configure -d -s -e -Dprefix=/usr/athena -Dcc="$$COMPILER" \
15            -Dlocincpth=/usr/athena/include -Dloclibpth=/usr/athena/lib \
16            -Doptimize='-g' -Dusethreads -Dperladmin=bugs@mit.edu \
17          ;; \
18        solaris) \
19          ./Configure -d -s -e -Dprefix=/usr/athena -Dcc="$$COMPILER" \
20            -Dlocincpth=/usr/athena/include -Dloclibpth=/usr/athena/lib \
21            -Doptimize='-g' -Dusethreads -Dperladmin=bugs@mit.edu \
22            -Dldflags='-L/usr/athena/lib -Wl,-R/usr/athena/lib' \
23          ;; \
24        esac
25
26clean:
27        ${MAKE} clean
28
29all:
30        ${MAKE} depend
31        ${MAKE} all
32
33check:
34
35install:
36        ${MAKE} install "DESTDIR=$$SRVD"
37        sed -e '/^chdir/d' -e "s:/usr:$$SRVD/usr:" \
38         -e "s:\$$Config{install:\"$$SRVD\"\.\$$Config{install:" \
39         utils/h2ph > h2phsrvd
40        chmod 755 h2phsrvd
41        dir=`pwd`; \
42        if [ -d /os/usr/include ]; then \
43          cd /os/usr/include; \
44        else \
45          cd /usr/include; \
46        fi; \
47        find . -name asm -prune -o -type f -print | \
48         xargs "$$dir/perl" "-I$$SRVD/usr/athena/lib/perl5" "$$dir/h2phsrvd";
Note: See TracBrowser for help on using the repository browser.