$NetBSD: patch-ah,v 1.3 2011/08/18 13:00:26 joerg Exp $ --- /dev/null 2005-06-22 02:24:06.000000000 -0400 +++ bin/mklib.libtool 2005-06-22 02:23:35.000000000 -0400 @@ -0,0 +1,47 @@ +#!/bin/sh + +# Make a libtool archive + + +#--common-------------------------------------------------------------- + +# Usage: mklib +# +# are arcitecture specific build flags +# is name of output library (LIBRARY) +# is major version number (MAJOR) +# is minor version number (MINOR) +# remaining arguments are object files (OBJECTS) +# +# added local installation target prefix (RM_INSTALL) +# tidied up the build +# +# 06/22/05 Contributor: jlam at NetBSD dot org +# + +ARCHFLAGS=$1 +shift 1 + +LIBRARY=$1 +shift 1 + +MAJOR=$1 +shift 1 + +MINOR=$1 +shift 1 + +VERSION=$MAJOR.$MINOR + +OBJECTS= +for obj in "$@"; do + lobj=`basename $obj .o`.lo + OBJECTS="${OBJECTS} $lobj" +done + +DEPLIBS="-lGL -lGLU -L${X11BASE}/lib -lX11 -lXmu" + +#--platform------------------------------------------------------------ + +# libtool specific build +libtool --mode=link ${REAL_CC} ${LDFLAGS} -o ${LIBRARY}.la ${OBJECTS} ${DEPLIBS} -rpath ${PREFIX}/lib -version-info ${MAJOR}:${MINOR}