CFLAGS is used after PHYSFSCFLAGS, so you can override optimization flags, etc.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 30 Oct 2004 23:45:29 +0000
changeset 666 7ca5dede89f2
parent 663 65132f8a8692
child 668 a5c80bd9549e
CFLAGS is used after PHYSFSCFLAGS, so you can override optimization flags, etc.
CHANGELOG
TODO
configure.in
--- a/CHANGELOG	Sat Oct 30 09:31:54 2004 +0000
+++ b/CHANGELOG	Sat Oct 30 23:45:29 2004 +0000
@@ -3,6 +3,7 @@
  */
 
 10302004 - Fixed a strcpy that should have been a strcat. (thanks, Tolga!)
+           Build system respects external CFLAGS now. (thanks, Adam!)
 10062004 - Removed profiling code from physfs.c.
 09292004 - Every API that can return a list of strings can now use a
            callback mechanism if the application wants to do it's own
--- a/TODO	Sat Oct 30 09:31:54 2004 +0000
+++ b/TODO	Sat Oct 30 23:45:29 2004 +0000
@@ -44,7 +44,6 @@
 - MIX enumerates files as hash values.
 - Should file enumeration return an error or set error state?
 - Ryanify pocketpc.c ...
-- CFLAGS fix.
 - Update internal zlib?
 - Get svn hooks working.
 - maybe other stuff.
--- a/configure.in	Sat Oct 30 09:31:54 2004 +0000
+++ b/configure.in	Sat Oct 30 23:45:29 2004 +0000
@@ -514,7 +514,7 @@
 
 AC_CHECK_SIZEOF(int, 4)
 
-CFLAGS="$CFLAGS $PHYSFSCFLAGS -D_REENTRANT -D_THREAD_SAFE"
+CFLAGS="$PHYSFSCFLAGS $CFLAGS -D_REENTRANT -D_THREAD_SAFE"
 LDFLAGS="$LDFLAGS $PHYSFSLDFLAGS -no-undefined"
 
 dnl Add Makefile conditionals