summaryrefslogtreecommitdiff
path: root/xc/extras/Mesa/bin/mklib.irix6-32
blob: fb75c45f2214431c31323e63fa53afbf6823a43c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/sh

# Make an o32 IRIX 6.x DSO

#--identification------------------------------------------------------

# $Id: mklib.irix6-32,v 1.1.1.1 2000/11/30 17:31:30 dawes Exp $

# $Log: mklib.irix6-32,v $
# Revision 1.1.1.1  2000/11/30 17:31:30  dawes
# Import of XFree86 4.0.1f
#
# Revision 1.2  1999/09/15 15:10:20  brianp
# added third, tiny version number to arguments
#
# Revision 1.1  1999/08/19 13:53:02  brianp
# initial check-in (post-crash)
#


#--common--------------------------------------------------------------

LIBRARY=$1
shift 1

MAJOR=$1
shift 1

MINOR=$1
shift 1

TINY=$1
shift 1

OBJECTS=$*

#--platform------------------------------------------------------------

# This is a bit of a kludge, but...
if test ${LIBRARY} = "libGL.so" ; then
	# must add libXext.a to Mesa libGL.so in case one relinks a precompiled
	# OpenGL program which wasn't linked with -lXext or -lm.
	OBJECTS="${OBJECTS} -lXext -lm"
fi


ld -32 -shared -all -o ${LIBRARY} ${OBJECTS}


# You may want to add the following to the ld line:
#   -soname <path>$LIBNAME
#
# where LIBNAME=`basename $LIBRARY` and <path> is where you're going to
# put Mesa's libraries.  This may solve problems with the runtime
# loader/linker (rld) not being able to find the library.
# For example:  -soname /usr/local/lib/$LIBNAME