CFLAGS is used after PHYSFSCFLAGS, so you can override optimization flags, etc.
--- 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