diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-10 23:58:36 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-10 23:58:36 +0000 |
commit | 847c329d0d3f70664310c0fe0f1f0ecacf6f8262 (patch) | |
tree | 2c6c1020efa2f637ada80410e08bd1cd91a9ccb3 /graphics/OpenRM/patches | |
parent | 145bef304ae2b7ff6e0bc3da7a701f52ab5f9a32 (diff) | |
download | pkgsrc-847c329d0d3f70664310c0fe0f1f0ecacf6f8262.tar.gz |
Simplify last commit by just passing LDFLAGS to the compiler when linking
the shared library. This automatically puts the LDFLAGS for any
dependencies, including the gcc3-* packages, into the link command.
Diffstat (limited to 'graphics/OpenRM/patches')
-rw-r--r-- | graphics/OpenRM/patches/patch-ad | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/graphics/OpenRM/patches/patch-ad b/graphics/OpenRM/patches/patch-ad index 0ec10728f6f..ab1d86aeb2c 100644 --- a/graphics/OpenRM/patches/patch-ad +++ b/graphics/OpenRM/patches/patch-ad @@ -1,12 +1,13 @@ -$NetBSD: patch-ad,v 1.1 2004/02/10 21:54:32 garbled Exp $ ---- bin/mklib.freebsd.orig Thu Dec 11 17:24:35 2003 -+++ bin/mklib.freebsd Tue Feb 10 14:30:35 2004 -@@ -37,7 +37,7 @@ - - OBJECTS=$* - --DEPLIBS="-lGL -lGLU -L${X11BASE}/lib -lXmu" -+DEPLIBS="-Wl,-R${PREFIX}/lib -L${PREFIX}/lib -lGL -lGLU -Wl,-R${X11BASE}/lib -L${X11BASE}/lib -lXmu" - - #--platform------------------------------------------------------------ - +$NetBSD: patch-ad,v 1.2 2004/02/10 23:58:36 jlam Exp $ + +--- bin/mklib.freebsd.orig Thu Dec 11 16:24:35 2003 ++++ bin/mklib.freebsd +@@ -47,7 +47,7 @@ ${RM} -f ${LIBRARY}.a ${LIBRARY}.so.${VE + ${AR} qv ${LIBRARY}.a ${OBJECTS} + + # FreeBSD specific build +-${CC} -shared -Wl,-soname,${LIBRARY}.so.${VERSION} -o ${LIBRARY}.so.${VERSION} ${OBJECTS} ${DEPLIBS} ++${CC} -shared -Wl,-soname,${LIBRARY}.so.${VERSION} -o ${LIBRARY}.so.${VERSION} ${OBJECTS} ${LDFLAGS} ${DEPLIBS} + if [ ${ARCHFLAGS##*-} != "debug" ]; then + ${STRIP_CMD} ${LIBRARY}.so.${VERSION} + ${ECHO_CMD} "library has been stripped (non-debug build)." |