Hi,
I tried building under BeOS today, and I ended up there:

make[2]: Entering directory `/work/oss/build/cmd/ossplay'
cc -c -O GGDEFINE -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/
framework/include -I../../kernel/OS/BeOS -I../../kernel/nonfree/include
-I../.. ossplay.c -o ./ossplay.o
gcc: cannot specify -o with -c or -S and multiple compilations
make[2]: *** [ossplay.o] Error 1


I've tracked it down to srcconf.c where the parms variable is matched
for "$OGGDEFINE", and *only* if it's found in the environment is
replaced with its value...

This patch forces parms to be empty after a match is found, so it's not
left over with the token being matched.

François.
diff -r c77f8f8d4296 setup/srcconf.c
--- a/setup/srcconf.c	Mon Aug 10 12:35:53 2009 +0300
+++ b/setup/srcconf.c	Mon Aug 10 14:16:54 2009 +0200
@@ -141,6 +141,7 @@
 
       if (strcmp (parms, "$GTKCFLAGS") == 0)
 	{
+	  parms = "";
 	  if (getenv ("GTK1") != NULL)
 	    parms = "`gtk-config --cflags` -DGTK1_ONLY";
 	  else
@@ -150,6 +151,7 @@
 
       if (strcmp (parms, "$GTKLDFLAGS") == 0)
 	{
+	  parms = "";
 	  if (getenv ("GTK1") != NULL)
 	    parms = "`gtk-config --libs`";
 	  else
@@ -159,12 +161,14 @@
 
       if (strcmp (parms, "$DLOPENLDFLAGS") == 0)
 	{
+	  parms = "";
 	  if (getenv ("OGG_SUPPORT") != NULL)
 	    parms = "-ldl";
 	}
 
       if (strcmp (parms, "$OGGDEFINE") == 0)
 	{
+	  parms = "";
 	  if (getenv ("OGG_SUPPORT") != NULL)
 	    parms = "-DOGG_SUPPORT";
 	}
_______________________________________________
oss-devel mailing list
oss-devel@mailman.opensound.com
http://mailman.opensound.com/mailman/listinfo/oss-devel

Reply via email to