847c329d0d
the shared library. This automatically puts the LDFLAGS for any dependencies, including the gcc3-* packages, into the link command.
13 lines
615 B
Text
13 lines
615 B
Text
$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)."
|