Files
2013-09-26 17:14:40 +02:00

53 lines
1.2 KiB
Plaintext

$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 <archflags> <libname> <major> <minor> <file.o ... >
+#
+# <archflags> are arcitecture specific build flags
+# <libname> is name of output library (LIBRARY)
+# <major> is major version number (MAJOR)
+# <minor> is minor version number (MINOR)
+# <file.o ... > 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}