Commit | Line | Data |
---|---|---|
40f422c7 | 1 | # For NCR MP-RAS systems with uname -a output like the following: |
177cde4c AD |
2 | # foo foo 4.0 3.0 3441 Pentium III(TM)-ISA/PCI |
3 | # foo foo 4.0 3.0 4400 Pentium II(TM)-ISA/PCI | |
40f422c7 | 4 | # foo foo 4.2 1.1.2 shg2 386at |
177cde4c | 5 | # the system needs to explicitly link against -lmw to pull in some |
b8392fa5 | 6 | # symbols such as _mwoflocheckl and possibly others. |
40f422c7 | 7 | # For the first two, Configure sets archname='3441-svr4.0' or '4400-svr4.0'. |
177cde4c AD |
8 | # The regex below is an attempt to get both systems as well as |
9 | # any reasonable future permutations. | |
10 | # Thanks to Doug Hendricks for the original info. | |
40f422c7 | 11 | # (See hints/svr4.sh for more details.) |
177cde4c | 12 | # A. Dougherty Tue Oct 30 10:20:07 EST 2001 |
40f422c7 | 13 | # |
177cde4c | 14 | if ($Config{'archname'} =~ /[34]4[0-9][0-9]-svr4/) { |
b8392fa5 AD |
15 | $self->{LIBS} = ['-lm -posix -lcposix -lmw']; |
16 | } | |
40f422c7 AD |
17 | # A better NCR MP-RAS test, thanks to W. Geoffrey Rommel, is to |
18 | # look for /etc/issue and /etc/.relid. A. Dougherty, September 16, 2003 | |
19 | elsif( -e '/etc/issue' && -e '/etc/.relid') { | |
20 | $self->{LIBS} = ['-lm -posix -lcposix -lmw']; | |
21 | } | |
b8392fa5 AD |
22 | # Not sure what OS this one is. |
23 | elsif ($Config{archname} =~ /RM\d\d\d-svr4/) { | |
24 | $self->{LIBS} = ['-lm -lc -lposix -lcposix']; | |
25 | } |