[xiph-commits] r10349 - trunk/xiph-rtp

giles at svn.xiph.org giles at svn.xiph.org
Sat Nov 5 23:45:14 PST 2005


Author: giles
Date: 2005-11-05 23:45:13 -0800 (Sat, 05 Nov 2005)
New Revision: 10349

Modified:
   trunk/xiph-rtp/Makefile
   trunk/xiph-rtp/vorbisrtp.c
Log:
Don't use -fpack-struct. I think Phil was doing this so he could write
out the in-memory version of the RTP and payload headers, but this 
generates code that isn't compatible with our normally compiled 
libraries and things quickly break.


Modified: trunk/xiph-rtp/Makefile
===================================================================
--- trunk/xiph-rtp/Makefile	2005-11-06 07:41:05 UTC (rev 10348)
+++ trunk/xiph-rtp/Makefile	2005-11-06 07:45:13 UTC (rev 10349)
@@ -1,6 +1,6 @@
 # GNU Makefile for xiph rtp example code
 
-CC = gcc -g -O2 -Wall -DDEBUG
+CC = gcc -g -O2 -Wall #-DDEBUG
 PROGS = vorbisrtp vorbisrtp-client theorartp-client
 
 vorbisrtp_SRCS = vorbisrtp.c
@@ -19,13 +19,13 @@
 	-$(RM) $(PROGS)
 
 vorbisrtp : vorbisrtp.c
-	$(CC) -fpack-struct -o $@ `pkg-config --cflags $($@_PKGS)` \
+	$(CC) -o $@ `pkg-config --cflags $($@_PKGS)` \
 		$< `pkg-config --libs $($@_PKGS)`
 
 vorbisrtp-client : vorbisrtp-client.c
-	$(CC) -fpack-struct -o $@  `pkg-config --cflags $($@_PKGS)` \
+	$(CC) -o $@  `pkg-config --cflags $($@_PKGS)` \
 		$< `pkg-config --libs $($@_PKGS)`
 
 theorartp-client :theorartp-client.c
-	$(CC) -fpack-struct -o $@ `pkg-config --cflags $($@_PKGS)` \
+	$(CC) -o $@ `pkg-config --cflags $($@_PKGS)` \
 		$< `pkg-config --libs $($@_PKGS)`

Modified: trunk/xiph-rtp/vorbisrtp.c
===================================================================
--- trunk/xiph-rtp/vorbisrtp.c	2005-11-06 07:41:05 UTC (rev 10348)
+++ trunk/xiph-rtp/vorbisrtp.c	2005-11-06 07:45:13 UTC (rev 10349)
@@ -34,7 +34,7 @@
 ||
 ||*****************************************************************************
 ||
-||  Compile:  gcc vorbisrtp.c -o vorbisrtp -lvorbis -logg -fpack-struct -Wall
+||  Compile:  gcc -Wall vorbisrtp.c -o vorbisrtp -lvorbis -logg
 ||
 ||  $Id:$                                                       
 ||                  



More information about the commits mailing list