[Asterisk-Dev] Missing ranlib call, better detection

Thorsten Lockert tholo at sigmasoft.com
Wed Apr 23 10:05:21 MST 2003


This patch adds a missing randlib to facilitate faster linking,
as well as checking for __unix__ in addition to plain unix for
seeing what kind of system we are running on.

Index: codecs/ilbc/Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk/codecs/ilbc/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- codecs/ilbc/Makefile	15 Apr 2003 04:36:52 -0000	1.1
+++ codecs/ilbc/Makefile	23 Apr 2003 16:49:48 -0000
@@ -11,6 +12,7 @@
 
 $(LIB): $(OBJS)
 	ar cr $(LIB) $(OBJS)
+	ranlib $(LIB)
 
 clean:
 	rm -f $(LIB) *.o
Index: codecs/lpc10/lpc10.h
===================================================================
RCS file: /usr/cvsroot/asterisk/codecs/lpc10/lpc10.h,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 lpc10.h
--- codecs/lpc10/lpc10.h	16 Mar 2003 22:37:30 -0000	1.1.1.2
+++ codecs/lpc10/lpc10.h	23 Apr 2003 16:49:48 -0000
@@ -32,7 +32,7 @@
 
  */
 
-#if defined(unix)
+#if defined(unix) || defined(__unix__)
 typedef short		INT16;
 typedef int		INT32;
 #endif
--
Thorsten Lockert      | tholo at sigmasoft.com | Universe, n.:
2121 N. Lakeshore Dr. | tholo at openbsd.org   |         The problem.
Chapel Hill, NC 27514 |                     |



More information about the asterisk-dev mailing list